summaryrefslogtreecommitdiffstats
path: root/ui/src/components/user.tsx
diff options
context:
space:
mode:
authorLorenz Schmidt <bytesnake@mailbox.org>2020-06-10 17:11:51 +0200
committerGitHub <noreply@github.com>2020-06-10 11:11:51 -0400
commit13771d56cd948addc93569dcf7a67d7641bbd747 (patch)
tree9ddac6418bb27f1e08dcc641caca9d3e3ec1e9f0 /ui/src/components/user.tsx
parent46bb3064ed64bee31e8ae3a31a9380bf9fb17f14 (diff)
Add default themes with media queries (#796)
* Indicate unstable API in README and mdbook * Support user preference for light and dark theme * Add default themes and load them in `setTheme` * Fixes #758
Diffstat (limited to 'ui/src/components/user.tsx')
-rw-r--r--ui/src/components/user.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index eded9998..7cd460a1 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -922,7 +922,7 @@ export class User extends Component<any, UserState> {
handleUserSettingsThemeChange(i: User, event: any) {
i.state.userSettingsForm.theme = event.target.value;
- setTheme(event.target.value);
+ setTheme(event.target.value, true);
i.setState(i.state);
}