Night mode: only the instruments and signs take the night palette (the UI's own colors stay Day's for the page inversion to darken — an active menu item had gone almost white)
This commit is contained in:
1 parent
bfa70c1d17
commit
8c999919b8
1 file changed
+20
-4
+20
-4
@@ -62,10 +62,7 @@
|
|||||||
/* Night: about a third of Day's luminance, warm greys, blue kept low; the
|
/* Night: about a third of Day's luminance, warm greys, blue kept low; the
|
||||||
UI never brighter than the map (S-52: added panels "should never
|
UI never brighter than the map (S-52: added panels "should never
|
||||||
generate more light than the chart display itself"). */
|
generate more light than the chart display itself"). */
|
||||||
/* also while the page's night mode is on (html.night inverts the UI and
|
:root[data-palette="night"] {
|
||||||
inverts the dashboard back: it has to be the dark one then) */
|
|
||||||
:root[data-palette="night"],
|
|
||||||
html.night {
|
|
||||||
--ui-bg: #0c0c0b;
|
--ui-bg: #0c0c0b;
|
||||||
--ui-fg: #8f8b80;
|
--ui-fg: #8f8b80;
|
||||||
--ui-muted: #5f5c55;
|
--ui-muted: #5f5c55;
|
||||||
@@ -89,6 +86,25 @@ html.night {
|
|||||||
--sign-fg: #0c0c0b;
|
--sign-fg: #0c0c0b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The page's night mode (html.night) inverts the whole UI and inverts the
|
||||||
|
dashboard back — so only the instruments and signs take the night values
|
||||||
|
there; the UI's own colors stay Day's for the inversion to darken. Goes
|
||||||
|
once the palettes replace the inversion. */
|
||||||
|
html.night {
|
||||||
|
--inst-bezel: 0 0 0;
|
||||||
|
--inst-halo: #000000;
|
||||||
|
--inst-text: #a29d90;
|
||||||
|
--inst-muted: #5f5c55;
|
||||||
|
--inst-ok: #2a8a33;
|
||||||
|
--inst-caution: #a87400;
|
||||||
|
--inst-warning: #ad2a20;
|
||||||
|
--inst-active: #94339f;
|
||||||
|
--inst-selected: #137a8c;
|
||||||
|
--sign-bg: #6b675e;
|
||||||
|
--sign-ring: #8a231b;
|
||||||
|
--sign-fg: #0c0c0b;
|
||||||
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
Reference in new issue
Block a user