// Apply the saved theme before paint so there's no flash. Dark by default. // A separate file rather than an inline