mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated to set font color in header bar in dark mode.
This commit is contained in:
parent
84dd13d92d
commit
01ae220674
3 changed files with 22 additions and 19 deletions
|
|
@ -11,11 +11,11 @@ Template.MainLayout.onRendered(function() {
|
|||
if (typeof myprefs != 'undefined') {
|
||||
if (myprefs.darkMode == "light") {
|
||||
console.log("Found theme as light");
|
||||
// Session.set("myTheme", "light");
|
||||
Session.set("myTheme", "light");
|
||||
document.documentElement.setAttribute('theme', "light");
|
||||
} else {
|
||||
console.log("Found theme as dark");
|
||||
// Session.set("myTheme", "dark");
|
||||
Session.set("myTheme", "dark");
|
||||
document.documentElement.setAttribute('theme', "dark");
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue