Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrgr committed Dec 16, 2024
1 parent 9e2df87 commit 159bc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class UserComponent implements OnInit {
if (theme === Theme.SYSTEM) {
attr = window.matchMedia("(prefers-color-scheme: dark)").matches ? Theme.DARK : Theme.LIGHT;
}
document.documentElement.setAttribute("data-theme", attr);
document.body.setAttribute("data-theme", attr);
}

public static getPreferedColorSchemeFromTheme(theme: Theme) {
Expand Down

0 comments on commit 159bc0f

Please sign in to comment.