add color scheme preview on hover in appearance dropdown
This commit is contained in:
@@ -62,6 +62,11 @@ export const SettingsGeneral: Component = () => {
|
|||||||
value={(o) => o.value}
|
value={(o) => o.value}
|
||||||
label={(o) => o.label}
|
label={(o) => o.label}
|
||||||
onSelect={(option) => option && theme.setColorScheme(option.value)}
|
onSelect={(option) => option && theme.setColorScheme(option.value)}
|
||||||
|
onHighlight={(option) => {
|
||||||
|
if (!option) return
|
||||||
|
theme.previewColorScheme(option.value)
|
||||||
|
return () => theme.cancelPreview()
|
||||||
|
}}
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user