Theme selector UX (current theme indicator and easier selection) (#4623)

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Youssef Achy
2025-11-25 13:53:01 -06:00
committed by GitHub
parent ca3ad9a167
commit 97875a5e83
2 changed files with 18 additions and 5 deletions
@@ -14,10 +14,6 @@ export function DialogThemeList() {
let ref: DialogSelectRef<string>
const initial = theme.selected
onMount(() => {
theme.set(Object.keys(theme.all())[0])
})
onCleanup(() => {
if (!confirmed) theme.set(initial)
})
@@ -26,6 +22,7 @@ export function DialogThemeList() {
<DialogSelect
title="Themes"
options={options}
current={initial}
onMove={(opt) => {
theme.set(opt.value)
}}