Draw news in GEV's own colours

The news layer brought its own ColorBrewer yellow, orange and red, solid
coloured marker discs, a coloured edge on every card, an amber developing
ring and pink disputed areas, which read as foreign next to GEV's cyan glass.

Severity now uses colours GEV already has (dim and primary text, the military
layers' amber, the Cockpit's emergency red), drawn as GEV's dark disc with a
severity rim and icon; attestation is still the rim's form. Cards lose the
coloured edge and name significant and major events in a mono badge;
attestation chips follow the status badge; outlines stay in the accent family
with disputed areas dotted in the primary text colour.
This commit is contained in:
Denis Groshev committed 2026-11-06 00:45:25 +01:00
1 parent e95ae7b80c
commit f3e206bf37
8 files changed
+68 -55

No files matched your search

+9 -7
View File
@@ -161,13 +161,15 @@ export const NEWS_CATEGORIES = Object.freeze({
},
});
// Severity 0–3. Lightness falls as severity rises, so the ramp still reads
// under colour blindness and in greyscale.
// Severity 0–3, in colours GEV already uses: its dim and primary text, the
// military layers' amber and the Cockpit's emergency red. They are drawn on
// a dark disc, so from minor up lightness falls as severity rises and the
// ramp still reads under colour blindness and in greyscale.
export const NEWS_SEVERITY = Object.freeze([
{ label: msg('No physical event'), color: '#8a9aa8' },
{ label: msg('Minor incident'), color: '#f2d64b' },
{ label: msg('Significant'), color: '#f28c28' },
{ label: msg('Major'), color: '#d7301f' },
{ label: msg('No physical event'), color: '#7c878d' },
{ label: msg('Minor incident'), color: '#e8eaed' },
{ label: msg('Significant'), color: '#ffb800' },
{ label: msg('Major'), color: '#ff4444' },
]);
/** The feed's default floor: significant and major events. */
export const NEWS_DEFAULT_MIN_SEVERITY = 2;
@@ -309,7 +311,7 @@ export function ageWords(at, now = Date.now()) {
}
/**
* How a report's marker looks: fill = severity, icon = category, rim =
* How a report's marker looks: colour = severity, icon = category, rim =
* attestation (`confirmed` solid, `claimed` dashed, else thin), size =
* sources, opacity = age (fading to 45 % over a day).
*/