Research map: religion joins prayer, adoption and engagement on the night look; only people, regions and languages are monochrome day

This commit is contained in:
swift-river542 2026-09-16 21:01:37 -05:00
parent 742a9481f7
commit 09471647cc

View file

@ -47,9 +47,11 @@ export const FIXED_BASEMAP = { lightPreset: 'night', theme: 'default' }
// The light look: the same Standard style lit by day in the monochrome (white) theme, so the
// pins stand out on every map that informs rather than prays. Prayer maps keep the night look (light and darkness).
export const LIGHT_BASEMAP = { lightPreset: 'day', theme: 'monochrome' }
// Which look a colour strategy asks for: prayer → dark, everything else → light.
// Which look a colour strategy asks for.
// Unknown strategy (tabs not loaded yet) → null: the current look is kept.
export function lookForStrategy(strategy) { return !strategy ? null : (/prayer/i.test(String(strategy)) ? 'dark' : 'light') } // 'prayer', 'prayerProgress', …
// Light (monochrome day) only for the informational trees: people (affinity blocs), regions,
// languages. Prayer, adoption, engagement and religion keep the night look.
export function lookForStrategy(strategy) { return !strategy ? null : (/affinity|region|language/i.test(String(strategy)) ? 'light' : 'dark') }
export function useMapTheme(uiStore) {
// Single pending 'idle' re-assert guard (per map instance). Prevents stacking one