Skip to content

Commit ae259d8

Browse files
fix(app): apply settings themes on select (anomalyco#35011)
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
1 parent 50374ab commit ae259d8

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

packages/app/src/components/settings-general.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,6 @@ export const SettingsGeneral: Component = () => {
440440
value={(o) => o.value}
441441
label={(o) => o.label}
442442
onSelect={(option) => option && theme.setColorScheme(option.value)}
443-
onHighlight={(option) => {
444-
if (!option) return
445-
theme.previewColorScheme(option.value)
446-
return () => theme.cancelPreview()
447-
}}
448443
variant="secondary"
449444
size="small"
450445
triggerVariant="settings"
@@ -471,11 +466,6 @@ export const SettingsGeneral: Component = () => {
471466
if (!option) return
472467
theme.setTheme(option.id)
473468
}}
474-
onHighlight={(option) => {
475-
if (!option) return
476-
theme.previewTheme(option.id)
477-
return () => theme.cancelPreview()
478-
}}
479469
variant="secondary"
480470
size="small"
481471
triggerVariant="settings"

packages/app/src/components/settings-v2/general.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,6 @@ export const SettingsGeneralV2: Component<{
422422
value={(o) => o.value}
423423
label={(o) => o.label}
424424
onSelect={(option) => option && theme.setColorScheme(option.value)}
425-
onHighlight={(option) => {
426-
if (!option) return
427-
theme.previewColorScheme(option.value)
428-
return () => theme.cancelPreview()
429-
}}
430425
/>
431426
</SettingsRowV2>
432427

@@ -454,11 +449,6 @@ export const SettingsGeneralV2: Component<{
454449
if (!option) return
455450
theme.setTheme(option.id)
456451
}}
457-
onHighlight={(option) => {
458-
if (!option) return
459-
theme.previewTheme(option.id)
460-
return () => theme.cancelPreview()
461-
}}
462452
/>
463453
</SettingsRowV2>
464454

0 commit comments

Comments
 (0)