Skip to content

Commit

Permalink
fix(run-time): make OS_COLOR_SCHEME a lazy static
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain committed Oct 29, 2024
1 parent 24a61c8 commit fb3286d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Coincidentally, this also ensures consistent colors across the GUI,
at the cost of requiring a restart to update the palette.
(this is just a patch, not a fix)
*/
#[dynamic]
#[dynamic(lazy)]
pub static OS_COLOR_SCHEME: dark_light::Mode = dark_light::detect();

#[derive(Default, Debug, PartialEq, Eq, Copy, Clone)]
Expand Down

0 comments on commit fb3286d

Please sign in to comment.