fix(frontend): woodenPanelの配色を修正 (#13561)
* fix(frontend): woodenPanelの配色を修正 * fix
This commit is contained in:
parent
d7bb6c88d3
commit
ca2df14a8f
2 changed files with 9 additions and 5 deletions
|
@ -145,8 +145,11 @@ export async function common(createVue: () => App<Element>) {
|
||||||
// NOTE: この処理は必ずクライアント更新チェック処理より後に来ること(テーマ再構築のため)
|
// NOTE: この処理は必ずクライアント更新チェック処理より後に来ること(テーマ再構築のため)
|
||||||
watch(defaultStore.reactiveState.darkMode, (darkMode) => {
|
watch(defaultStore.reactiveState.darkMode, (darkMode) => {
|
||||||
applyTheme(darkMode ? ColdDeviceStorage.get('darkTheme') : ColdDeviceStorage.get('lightTheme'));
|
applyTheme(darkMode ? ColdDeviceStorage.get('darkTheme') : ColdDeviceStorage.get('lightTheme'));
|
||||||
|
document.documentElement.dataset.colorMode = darkMode ? 'dark' : 'light';
|
||||||
}, { immediate: miLocalStorage.getItem('theme') == null });
|
}, { immediate: miLocalStorage.getItem('theme') == null });
|
||||||
|
|
||||||
|
document.documentElement.dataset.colorMode = defaultStore.state.darkMode ? 'dark' : 'light';
|
||||||
|
|
||||||
const darkTheme = computed(ColdDeviceStorage.makeGetterSetter('darkTheme'));
|
const darkTheme = computed(ColdDeviceStorage.makeGetterSetter('darkTheme'));
|
||||||
const lightTheme = computed(ColdDeviceStorage.makeGetterSetter('lightTheme'));
|
const lightTheme = computed(ColdDeviceStorage.makeGetterSetter('lightTheme'));
|
||||||
|
|
||||||
|
|
|
@ -431,12 +431,13 @@ rt {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
||||||
--bg: #F1E8DC;
|
--bg: #F1E8DC;
|
||||||
--panel: #fff;
|
|
||||||
--fg: #693410;
|
--fg: #693410;
|
||||||
--switchOffBg: rgba(0, 0, 0, 0.1);
|
}
|
||||||
--switchOffFg: rgb(255, 255, 255);
|
|
||||||
--switchOnBg: var(--accent);
|
html[data-color-mode=dark] ._woodenFrame {
|
||||||
--switchOnFg: rgb(255, 255, 255);
|
--bg: #1d0c02;
|
||||||
|
--fg: #F1E8DC;
|
||||||
|
--panel: #192320;
|
||||||
}
|
}
|
||||||
|
|
||||||
._woodenFrameH {
|
._woodenFrameH {
|
||||||
|
|
Loading…
Reference in a new issue