mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fix: attempted Vuetify dark mode fix (#2638)
This commit is contained in:
parent
eba9ff00ce
commit
4b04137a04
@ -5,9 +5,9 @@ const darkModePlugin: Plugin = ({ $vuetify }, _) => {
|
|||||||
const isDark = useDark();
|
const isDark = useDark();
|
||||||
|
|
||||||
// Vuetify metadata is bugged and doesn't render dark mode fully when called immediately
|
// Vuetify metadata is bugged and doesn't render dark mode fully when called immediately
|
||||||
// Adding a 100 millisecond delay fixes this problem
|
// Adding a delay fixes this problem
|
||||||
// https://stackoverflow.com/questions/69399797/vuetify-darkmode-colors-wrong-after-page-reload
|
// https://stackoverflow.com/questions/69399797/vuetify-darkmode-colors-wrong-after-page-reload
|
||||||
setTimeout(() => { $vuetify.theme.dark = isDark.value; }, 100);
|
setTimeout(() => { $vuetify.theme.dark = isDark.value; }, 200);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default darkModePlugin;
|
export default darkModePlugin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user