Fix "pure dark mode" setting visibility

In case the apps theme mode was never changed, the "mui-mode" was never set.
This lead to the "pure black mode" setting to never be visible.
This commit is contained in:
schroda
2025-07-20 21:47:29 +02:00
parent 2b1c2a0b6c
commit 93b9e84a37
2 changed files with 2 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ export const Appearance = () => {
makeToast(t('global.error.label.failed_to_save_changes'), 'error', getErrorMessage(e)),
);
const isDarkMode = MediaQuery.getThemeMode() === ThemeMode.DARK;
const isDarkMode = MediaQuery.getThemeMode(actualThemeMode) === ThemeMode.DARK;
if (loading) {
return <LoadingPlaceholder />;