Fix local light app theme flicker on initial render

MUIs "useColorScheme" hook always returned "system" on the initial render.
(Probably because it's used outside the AppProvider context)
This commit is contained in:
schroda
2025-07-28 02:38:18 +02:00
parent ef6c1fce56
commit 1ab0178d88
3 changed files with 20 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export const MUI_THEME_MODE_KEY = 'mui-mode';