Skip to content

Commit 4c76933

Browse files
committed
Update the selected color of the Switcher component
1 parent d8eca04 commit 4c76933

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui-components/src/commonMain/kotlin/org/jetbrains/kotlinconf/ui/components/Switcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private fun SwitcherItem(
4545
else KotlinConfTheme.colors.secondaryText,
4646
)
4747
val strokeColor by animateColorAsState(
48-
if (selected) KotlinConfTheme.colors.strokeFull
48+
if (selected) KotlinConfTheme.colors.strokeAccent
4949
else Color.Transparent,
5050
)
5151

ui-components/src/commonMain/kotlin/org/jetbrains/kotlinconf/ui/theme/Colors.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class Colors(
4545
val scrollIndicatorFill: Color,
4646

4747
val strokeFull: Color,
48+
val strokeAccent: Color,
4849
val strokeInputFocus: Color,
4950
val strokeHalf: Color,
5051
val strokePale: Color,
@@ -80,6 +81,7 @@ val KotlinConfLightColors = Colors(
8081
scrollIndicatorFill = black15,
8182

8283
strokeFull = black100,
84+
strokeAccent = purple100,
8385
strokeInputFocus = black80,
8486
strokeHalf = black40,
8587
strokePale = black15,
@@ -115,6 +117,7 @@ val KotlinConfDarkColors = Colors(
115117
scrollIndicatorFill = white30,
116118

117119
strokeFull = white100,
120+
strokeAccent = purpleTextDark,
118121
strokeInputFocus = white80,
119122
strokeHalf = white50,
120123
strokePale = white20,

0 commit comments

Comments
 (0)