Skip to content

Commit

Permalink
fix: dark_effective should always be set, even when dark == null
Browse files Browse the repository at this point in the history
Before, if dark was null, we we not change the dark_effective when
the vuetify.theme.dark was changed (e.g. via solara when the
OS or browser setting is changed)
  • Loading branch information
maartenbreddels committed Feb 26, 2024
1 parent 33176c3 commit 778deaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/Themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export class ThemeModel extends WidgetModel {
this.get("dark") !== vuetify.framework.theme.dark
) {
this.set("dark", vuetify.framework.theme.dark);
this.set("dark_effective", vuetify.framework.theme.dark);
this.save_changes();
}
this.set("dark_effective", vuetify.framework.theme.dark);
this.save_changes();
}
}

Expand Down

0 comments on commit 778deaa

Please sign in to comment.