mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 07:03:45 +00:00
tui: simplify theme selection API by renaming setSelectedTheme to set
This commit is contained in:
@@ -642,10 +642,11 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
|
||||
return values()[prop]
|
||||
},
|
||||
}),
|
||||
get selectedTheme() {
|
||||
get selected() {
|
||||
return kv.data.theme
|
||||
},
|
||||
setSelectedTheme(theme: string) {
|
||||
set(theme: string) {
|
||||
if (!THEMES[theme]) return
|
||||
setTheme(theme)
|
||||
kv.set("theme", theme)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user