save light mode
This commit is contained in:
@@ -129,6 +129,11 @@
|
|||||||
const sidebarActive = ref(false);
|
const sidebarActive = ref(false);
|
||||||
|
|
||||||
const appStateStore = useAppStateStore();
|
const appStateStore = useAppStateStore();
|
||||||
|
|
||||||
|
function toggleTheme() {
|
||||||
|
appStateStore.isDark.value = !appStateStore.isDark.value;
|
||||||
|
}
|
||||||
|
|
||||||
const beatStore = useBeatStore();
|
const beatStore = useBeatStore();
|
||||||
|
|
||||||
window.drumslayer = {
|
window.drumslayer = {
|
||||||
|
|||||||
@@ -23,10 +23,6 @@ html, body {
|
|||||||
--color-p-dark-active: #464646;
|
--color-p-dark-active: #464646;
|
||||||
--color-title-light: #282828;
|
--color-title-light: #282828;
|
||||||
--color-title-dark: #282828;
|
--color-title-dark: #282828;
|
||||||
--color-box-dark: #464646;
|
|
||||||
--color-box-dark-border: #464646;
|
|
||||||
--color-box-hover-dark: #5f5f5f;
|
|
||||||
--color-box-hover-dark-border: #5f5f5f;
|
|
||||||
--color-box: #e0e0e0;
|
--color-box: #e0e0e0;
|
||||||
--color-box-hover: #f1f1f1;
|
--color-box-hover: #f1f1f1;
|
||||||
}
|
}
|
||||||
@@ -53,6 +49,8 @@ body.dark {
|
|||||||
--color-p-dark-active: #464646;
|
--color-p-dark-active: #464646;
|
||||||
--color-title-light: #fafafa;
|
--color-title-light: #fafafa;
|
||||||
--color-title-dark: #282828;
|
--color-title-dark: #282828;
|
||||||
|
--color-box: #464646;
|
||||||
|
--color-box-hover: #5f5f5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
|
|||||||
Reference in New Issue
Block a user