Skip to content

Commit

Permalink
fix: jupyter colors not updating on theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Feb 21, 2024
1 parent 1df5c2a commit 162cf58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions solara/server/templates/solara.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
this.$vuetify.theme.dark = inDarkMode();
});
if (this.$vuetify.theme.dark) {
this.changeThemeCSS('dark');
} else {
this.changeThemeCSS('light');
}
},
methods: {
stateReset() {
Expand Down

0 comments on commit 162cf58

Please sign in to comment.