()
| 126 | } |
| 127 | |
| 128 | function getSystemMode(): "light" | "dark" { |
| 129 | if (typeof window !== "object") return "light" |
| 130 | return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" |
| 131 | } |
| 132 | |
| 133 | function applyThemeCss(theme: DesktopTheme, themeId: string, mode: "light" | "dark") { |
| 134 | const isDark = mode === "dark" |
no outgoing calls
no test coverage detected