Skip to content

Commit

Permalink
fix(frontend): woodenPanelの配色を修正 (#13561)
Browse files Browse the repository at this point in the history
* fix(frontend): woodenPanelの配色を修正

* fix
  • Loading branch information
kakkokari-gtyih authored Mar 20, 2024
1 parent d7bb6c8 commit ca2df14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/frontend/src/boot/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ export async function common(createVue: () => App<Element>) {
// NOTE: この処理は必ずクライアント更新チェック処理より後に来ること(テーマ再構築のため)
watch(defaultStore.reactiveState.darkMode, (darkMode) => {
applyTheme(darkMode ? ColdDeviceStorage.get('darkTheme') : ColdDeviceStorage.get('lightTheme'));
document.documentElement.dataset.colorMode = darkMode ? 'dark' : 'light';
}, { immediate: miLocalStorage.getItem('theme') == null });

document.documentElement.dataset.colorMode = defaultStore.state.darkMode ? 'dark' : 'light';

const darkTheme = computed(ColdDeviceStorage.makeGetterSetter('darkTheme'));
const lightTheme = computed(ColdDeviceStorage.makeGetterSetter('lightTheme'));

Expand Down
11 changes: 6 additions & 5 deletions packages/frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,13 @@ rt {
border-radius: 10px;

--bg: #F1E8DC;
--panel: #fff;
--fg: #693410;
--switchOffBg: rgba(0, 0, 0, 0.1);
--switchOffFg: rgb(255, 255, 255);
--switchOnBg: var(--accent);
--switchOnFg: rgb(255, 255, 255);
}

html[data-color-mode=dark] ._woodenFrame {
--bg: #1d0c02;
--fg: #F1E8DC;
--panel: #192320;
}

._woodenFrameH {
Expand Down

0 comments on commit ca2df14

Please sign in to comment.