Updated to set font color in header bar in dark mode.

This commit is contained in:
Brian McGonagill 2024-07-27 13:56:23 -05:00
parent 84dd13d92d
commit 01ae220674
3 changed files with 22 additions and 19 deletions

View file

@ -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 {