From 276e73412abef28c222c52a84334d49f5e414f3c Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 23:39:08 +0100 Subject: Use consolidated data API in map sheet with shared card component (#100) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero --- src/frontend/app/maps/styleloader.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/frontend/app/maps/styleloader.ts') diff --git a/src/frontend/app/maps/styleloader.ts b/src/frontend/app/maps/styleloader.ts index d20fd31..43118a0 100644 --- a/src/frontend/app/maps/styleloader.ts +++ b/src/frontend/app/maps/styleloader.ts @@ -3,10 +3,12 @@ import type { Theme } from "~/AppContext"; export async function loadStyle( styleName: string, - colorScheme: Theme, + colorScheme: Theme ): Promise { if (colorScheme == "system") { - const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches; + const isDarkMode = window.matchMedia( + "(prefers-color-scheme: dark)" + ).matches; colorScheme = isDarkMode ? "dark" : "light"; } -- cgit v1.3