mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 19:44:25 +08:00
refactor: change style of Switch
This commit is contained in:
@@ -236,10 +236,10 @@ private fun defaultSwitchBorder() = BorderStroke(LocalSizes.current.borderSizeTe
|
|||||||
@ReadOnlyComposable
|
@ReadOnlyComposable
|
||||||
private fun defaultSwitchContentSpacing() = LocalSizes.current.spacingSecondary
|
private fun defaultSwitchContentSpacing() = LocalSizes.current.spacingSecondary
|
||||||
|
|
||||||
private val DefaultSwitchPadding = 4.dp
|
private val DefaultSwitchPadding = 3.dp
|
||||||
|
|
||||||
private val DefaultThumbDiameter = 12.dp
|
private val DefaultThumbDiameter = 15.dp
|
||||||
private const val DefaultThumbGain = 1.2f
|
private const val DefaultThumbGain = 1.1f
|
||||||
private val DefaultThumbShadowSize = 0.5.dp
|
private val DefaultThumbShadowSize = 0.5.dp
|
||||||
|
|
||||||
private val DefaultTrackWidth = 40.dp
|
private val DefaultTrackWidth = 40.dp
|
||||||
|
Reference in New Issue
Block a user