Skip to content

Commit

Permalink
Fix runtime theme selection to actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Feb 8, 2024
1 parent 7edee09 commit e117e4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ const App = (props) => {
});

useEffect(() => {
setTheme(theme);
setBgColor(uiTheme.palette.body);
}, [theme, uiTheme]);
}, [theme, uiTheme, setTheme]);

const toggleFlashing = async () => {
flashing = !flashing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function LookAndFeelPreferences(props) {

const changeTheme = (name) => (event) => {
settings.set("ui.theme", name);
setTheme(null);
setTheme(name);
};

Expand Down

0 comments on commit e117e4b

Please sign in to comment.