fix(app): apply settings themes on select (#35011)
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
This commit is contained in:
parent
50374abab8
commit
ae259d87f0
2 changed files with 0 additions and 20 deletions
|
|
@ -440,11 +440,6 @@ 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"
|
||||||
triggerVariant="settings"
|
triggerVariant="settings"
|
||||||
|
|
@ -471,11 +466,6 @@ export const SettingsGeneral: Component = () => {
|
||||||
if (!option) return
|
if (!option) return
|
||||||
theme.setTheme(option.id)
|
theme.setTheme(option.id)
|
||||||
}}
|
}}
|
||||||
onHighlight={(option) => {
|
|
||||||
if (!option) return
|
|
||||||
theme.previewTheme(option.id)
|
|
||||||
return () => theme.cancelPreview()
|
|
||||||
}}
|
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="small"
|
size="small"
|
||||||
triggerVariant="settings"
|
triggerVariant="settings"
|
||||||
|
|
|
||||||
|
|
@ -422,11 +422,6 @@ export const SettingsGeneralV2: 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()
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</SettingsRowV2>
|
</SettingsRowV2>
|
||||||
|
|
||||||
|
|
@ -454,11 +449,6 @@ export const SettingsGeneralV2: Component<{
|
||||||
if (!option) return
|
if (!option) return
|
||||||
theme.setTheme(option.id)
|
theme.setTheme(option.id)
|
||||||
}}
|
}}
|
||||||
onHighlight={(option) => {
|
|
||||||
if (!option) return
|
|
||||||
theme.previewTheme(option.id)
|
|
||||||
return () => theme.cancelPreview()
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</SettingsRowV2>
|
</SettingsRowV2>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue