Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

better naming

Oleg Isonen66053f67e366
diff --git a/apps/designer/app/shared/theme/theme.ts b/apps/designer/app/shared/theme/theme.ts
index 23ea40f215..ea664fd9b2 100644
--- a/apps/designer/app/shared/theme/theme.ts
+++ b/apps/designer/app/shared/theme/theme.ts
@@ -13,13 +13,13 @@ let system: ColorScheme;
const subscribeSystemTheme = () => {
if (typeof matchMedia === "undefined") return;
const query = matchMedia("(prefers-color-scheme: light)");
- const getColorScheme = (query: MediaQueryList | MediaQueryListEvent) =>
+ const queryColorScheme = (query: MediaQueryList | MediaQueryListEvent) =>
query.matches ? "light" : "dark";
- system = getColorScheme(query);
+ system = queryColorScheme(query);
query.addEventListener("change", (queryEvent) => {
- system = getColorScheme(queryEvent);
+ system = queryColorScheme(queryEvent);
renderThemeProps();
});
};