[GIT] Evergreen ILS branch main updated. 4a0ab93c888738b5ca77fb4a53560b29874133b7

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, main has been updated via 4a0ab93c888738b5ca77fb4a53560b29874133b7 (commit) from fbbe827ff2e259a0273fc9b2f953a9ffda0283ed (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 4a0ab93c888738b5ca77fb4a53560b29874133b7 Author: Steven Mayo <smayo@georgialibraries.org> Date: Tue Sep 17 17:42:10 2024 -0400 LP2080887 Dark Mode: White Flash Betweeb Ang/AngJS Adds a backup script changing color mode from local storage to the heads of Angular and AngularJS. Happens early enough to not make a flash. Signed-off-by: Steven Mayo <smayo@georgialibraries.org> Signed-off-by: Susan Morrison <smorrison@georgialibraries.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> diff --git a/Open-ILS/src/eg2/src/index.html b/Open-ILS/src/eg2/src/index.html index 9ecb4c51fb..18589d3137 100644 --- a/Open-ILS/src/eg2/src/index.html +++ b/Open-ILS/src/eg2/src/index.html @@ -6,6 +6,12 @@ <base href="/eg2"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> + <script> + const colormode = localStorage.getItem('eg.ui.general.colormode'); + if (colormode) { + document.documentElement.setAttribute('data-bs-theme', colormode.replaceAll("\"", "")); + } + </script> </head> <body> <eg-root></eg-root> diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 682916c167..7f2fb1b77c 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -34,6 +34,12 @@ <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/dark.css" /> <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/nav.css" /> <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/grid.css" /> + <script> + const colormode = localStorage.getItem('eg.ui.general.colormode'); + if (colormode) { + document.documentElement.setAttribute('data-bs-theme', colormode.replaceAll("\"", "")); + } + </script> </head> <body> ----------------------------------------------------------------------- Summary of changes: Open-ILS/src/eg2/src/index.html | 6 ++++++ Open-ILS/src/templates/staff/base.tt2 | 6 ++++++ 2 files changed, 12 insertions(+) hooks/post-receive -- Evergreen ILS
participants (1)
-
Git User