diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-28 20:28:59 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-28 20:37:53 +1100 |
| commit | 3c5144ece678063ba3cd9d96dce98b9479d4205c (patch) | |
| tree | d0e12fd82bbc6eab35fb1e6ad08260ff5a9db4c0 /src/store.ts | |
| parent | 94a8ad9b067e5a2c442ce47ce72d1a53eb444160 (diff) | |
Adjust info and help modal styling
Fix minor typos in store.ts, App.vue, IconButton, etc
Diffstat (limited to 'src/store.ts')
| -rw-r--r-- | src/store.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store.ts b/src/store.ts index 00892b7..7cc8f55 100644 --- a/src/store.ts +++ b/src/store.ts @@ -26,6 +26,7 @@ export type StoreState = { // Coloring color: { text: string, // CSS color + textDark: string, textAlt: string, bg: string, bgLight: string, @@ -66,6 +67,7 @@ function getDefaultState(): StoreState { const tileSpacing = breakpoint == 'sm' ? 6 : 9; const color = { // Note: For scrollbar colors on chrome, edit ./index.css text: '#fafaf9', // stone-50 + textDark: '#a8a29e', // stone-400 textAlt: '#1c1917', // stone-900 bg: '#292524', // stone-800 bgLight: '#44403c', // stone-700 @@ -216,7 +218,7 @@ export const useStore = defineStore('store', { const defaultState = getDefaultState(); for (const key of STORE_COMP_KEYS){ const defaultVal = getStoreVal(defaultState, key); - if (getStoreVal(this, key) != defaultState && localStorage.getItem(key) == null){ + if (getStoreVal(this, key) != defaultVal && localStorage.getItem(key) == null){ setStoreVal(this, key, defaultVal) } } |
