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 23, 2024
1 parent 957db6e commit daa8e6a
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 daa8e6a

Please sign in to comment.