Tweak avi follow button styles (#4304)
* Tighten up * Tweak colors * Tweak for night mode * Add missing file * Contrast plus
This commit is contained in:
parent
f868821cfc
commit
5cda807d9d
4 changed files with 42 additions and 13 deletions
14
src/alf/util/themeSelector.ts
Normal file
14
src/alf/util/themeSelector.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import {ThemeName} from '#/alf/themes'
|
||||
|
||||
export function select<T>(name: ThemeName, options: Record<ThemeName, T>) {
|
||||
switch (name) {
|
||||
case 'light':
|
||||
return options.light
|
||||
case 'dark':
|
||||
return options.dark || options.dim
|
||||
case 'dim':
|
||||
return options.dim || options.dark
|
||||
default:
|
||||
throw new Error(`select(theme, options) received unknown theme ${name}`)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue