From 13bbabfde6f9ee8e02d99a2b949b6785f0c3314f Mon Sep 17 00:00:00 2001 From: Jigmet Dadul <85403349+jigmetdadul@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:45:14 +0530 Subject: [PATCH] Refactor FXIOS-7742 [v121] Incorrect color of search engines toggles (#17285) * Refactor FXIOS-17273 [v121] Incorrect color of search engines toggles * Refactor FXIOS-7742 [v121] Incorrect color of search engines toggles --- BrowserKit/Sources/ComponentLibrary/Buttons/ThemedSwitch.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/BrowserKit/Sources/ComponentLibrary/Buttons/ThemedSwitch.swift b/BrowserKit/Sources/ComponentLibrary/Buttons/ThemedSwitch.swift index a8e8d5085680..64cdd37742f7 100644 --- a/BrowserKit/Sources/ComponentLibrary/Buttons/ThemedSwitch.swift +++ b/BrowserKit/Sources/ComponentLibrary/Buttons/ThemedSwitch.swift @@ -30,5 +30,6 @@ public class ThemedSwitch: UISwitch, ThemeApplicable { enabledOffColor = theme.colors.formSurfaceOff disabledOffColor = theme.colors.formSurfaceOff.withAlphaComponent(0.4) thumbTintColor = theme.colors.formKnob + onTintColor = isEnabled ? enabledOnColor : disabledOnColor } }