diff --git a/library/composables/useMapTheme.js b/library/composables/useMapTheme.js index 90c462540..6cb2619f7 100644 --- a/library/composables/useMapTheme.js +++ b/library/composables/useMapTheme.js @@ -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