add color scheme preview on hover in appearance dropdown

This commit is contained in:
David Hill
2026-01-20 18:06:58 +00:00
parent 602b6be4d4
commit dbc15d4816

View File

@@ -62,6 +62,11 @@ export const SettingsGeneral: Component = () => {
value={(o) => o.value}
label={(o) => o.label}
onSelect={(option) => option && theme.setColorScheme(option.value)}
onHighlight={(option) => {
if (!option) return
theme.previewColorScheme(option.value)
return () => theme.cancelPreview()
}}
variant="secondary"
size="small"
/>