Palettes after IHO S-52 (Day / Dusk / Night, the same tokens, data-palette on <html>): night dim with low blue and no white areas, the speed limit sign dimmed too; the dashboard light with dark values by day again (the slider fades it instead of whitening it), the dark bezel for dusk and night
This commit is contained in:
1 parent
4c58c9351f
commit
e62eb90dc7
3 files changed
+135
-24
No files matched your search
+40
-5
@@ -56,10 +56,40 @@ a color never decorates.
|
||||
|===
|
||||
|
||||
Road signs stay road signs: the speed limit is the white disc with the
|
||||
red ring whatever the theme — it's read as a sign, not as a color.
|
||||
red ring — read as a sign, not as a color (`--sign-*`, only dimmed by
|
||||
night).
|
||||
|
||||
Night: the page's night mode inverts the UI (`html.night`); the
|
||||
instruments are already dark and are inverted back, only dimmed.
|
||||
=== Day, dusk, night (after IHO S-52)
|
||||
|
||||
Marine electronic charts (ECDIS) have the most worked-out rules for one
|
||||
display across bright sun and a dark bridge — the IHO's S-52 (Edition
|
||||
6.1.1, 2015): *three colour tables, Day, Dusk and Night*, every color a
|
||||
named token with a value per table (the Presentation Library's Appendix
|
||||
A). We do the same: the tokens above, three sets of values, `<html
|
||||
data-palette="dusk|night">` (Day the default), meanings unchanged between
|
||||
them. From S-52:
|
||||
|
||||
* *Day*: a light background with dark foreground details, strong contrast —
|
||||
bright sun washes a display out. (Our instruments keep their dark bezel,
|
||||
a full-opacity one for sun on the screen.)
|
||||
* *Dusk*: a black-background table, "for optional use by day as well as at
|
||||
twilight".
|
||||
* *Night*: dark background, light foreground, dim enough not to impair night
|
||||
vision; at low light colors are hard to tell apart, so important things
|
||||
get a second cue (shape, line style), not color alone. Adjust by
|
||||
contrast, not brightness (dark colors drop to black).
|
||||
* Anything added on the chart's screen (panels, text) "should never generate
|
||||
more light than the chart display itself" at night, and text panels
|
||||
mustn't outshine the chart.
|
||||
|
||||
Our night values are roughly a third of Day's luminance, warm greys, blue
|
||||
kept low; no white areas (the speed limit sign dims too). The map has its
|
||||
own night palette (`NightMap`, `map_themes.js`); a Dusk map is still to do.
|
||||
|
||||
Today the page's night mode inverts the whole UI (`html.night`, the
|
||||
instruments inverted back). The palettes replace that: set the
|
||||
`data-palette`, by the sun (already worked out for the night mode) or by
|
||||
hand.
|
||||
|
||||
== Typography
|
||||
|
||||
@@ -82,5 +112,10 @@ route panel, NPS maps, the offline data panel
|
||||
(next maneuver, lanes), the switch panel (PDM), warnings, `/can.html`
|
||||
|===
|
||||
|
||||
The route line is the bridge: blue (`#1d6fdc`) while planning, magenta
|
||||
(`--inst-active`) once it's being navigated.
|
||||
The route line is the bridge: blue (`--route-planned`) while planning,
|
||||
magenta (`--route-active`) once it's being navigated.
|
||||
|
||||
Sources: IHO S-52 Edition 6.1.1 (2015), sections 2.2.6, 4.2; the avionics
|
||||
color meanings are the common glass-cockpit convention (FAA AC 25-11B has
|
||||
the color coding guidance, §5.3 — not checked here, its PDF refused the
|
||||
fetch).
|
||||
Reference in new issue
Block a user