Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
frankvgompel committed Sep 15, 2024
2 parents 67f31b9 + f72d74c commit 44634ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl Default for Colorix {
impl Colorix {
pub fn init(ctx: &mut egui::Context, theme: [ColorPreset; 12]) -> Self {
let mut colorix = Colorix { theme, ..Default::default() };
colorix.scales.dark_mode = ctx.style().visuals.dark_mode;
colorix.get_theme_index();
colorix.update_colors(ctx);
colorix
Expand Down

0 comments on commit 44634ef

Please sign in to comment.