Rename colorMode with colorScheme

This commit is contained in:
mertsincan 2024-03-06 10:38:51 +00:00
parent 65a999933c
commit 2841ed3684
8 changed files with 60 additions and 27 deletions

View file

@ -101,7 +101,7 @@ export default {
const isDark = isAuto && isClient ? window.matchMedia('(prefers-color-scheme: dark)') : colorSchemeOption.dark?.default;
const defaultDocument = isClient ? window.document : undefined;
Theme.setColorMode(isDark ? 'dark' : 'light');
Theme.setColorScheme(isDark ? 'dark' : 'light');
if (isDark && defaultDocument) {
DomHandler.addClass(defaultDocument.documentElement, colorSchemeOption.dark?.class);