Update dependencies
This commit is contained in:
@@ -160,14 +160,14 @@ fun ThemePreview(
|
||||
)
|
||||
SingleChoiceSegmentedButtonRow {
|
||||
SegmentedButton(
|
||||
shape = SegmentedButtonDefaults.shape(position = 0, count = 2),
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 0, count = 2),
|
||||
selected = !darkTheme,
|
||||
onClick = { darkTheme = false }
|
||||
) {
|
||||
Icon(Icons.Rounded.LightMode, null)
|
||||
}
|
||||
SegmentedButton(
|
||||
shape = SegmentedButtonDefaults.shape(position = 1, count = 2),
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 1, count = 2),
|
||||
selected = darkTheme,
|
||||
onClick = { darkTheme = true }
|
||||
) {
|
||||
|
||||
+4
-4
@@ -107,7 +107,7 @@ fun ThemeColorPreference(
|
||||
currentValue = defaultValue
|
||||
},
|
||||
icon = {
|
||||
SegmentedButtonDefaults.SegmentedButtonIcon(
|
||||
SegmentedButtonDefaults.Icon(
|
||||
active = actualValue is ColorRef,
|
||||
) {
|
||||
Icon(
|
||||
@@ -118,7 +118,7 @@ fun ThemeColorPreference(
|
||||
)
|
||||
}
|
||||
},
|
||||
shape = SegmentedButtonDefaults.shape(position = 0, count = 2)
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 0, count = 2)
|
||||
) {
|
||||
Text(stringResource(R.string.theme_color_scheme_palette_color))
|
||||
}
|
||||
@@ -128,7 +128,7 @@ fun ThemeColorPreference(
|
||||
currentValue = StaticColor(actualValue.get(corePalette))
|
||||
},
|
||||
icon = {
|
||||
SegmentedButtonDefaults.SegmentedButtonIcon(
|
||||
SegmentedButtonDefaults.Icon(
|
||||
active = actualValue is StaticColor,
|
||||
) {
|
||||
Icon(
|
||||
@@ -139,7 +139,7 @@ fun ThemeColorPreference(
|
||||
)
|
||||
}
|
||||
},
|
||||
shape = SegmentedButtonDefaults.shape(position = 1, count = 2)
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 1, count = 2)
|
||||
) {
|
||||
Text(stringResource(R.string.theme_color_scheme_custom_color))
|
||||
}
|
||||
|
||||
+2
-2
@@ -56,14 +56,14 @@ fun ThemePreferenceCategory(
|
||||
)
|
||||
SingleChoiceSegmentedButtonRow {
|
||||
SegmentedButton(
|
||||
shape = SegmentedButtonDefaults.shape(position = 0, count = 2),
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 0, count = 2),
|
||||
selected = !darkMode,
|
||||
onClick = { onDarkModeChanged(false) }
|
||||
) {
|
||||
Icon(Icons.Rounded.LightMode, null)
|
||||
}
|
||||
SegmentedButton(
|
||||
shape = SegmentedButtonDefaults.shape(position = 1, count = 2),
|
||||
shape = SegmentedButtonDefaults.itemShape(index = 1, count = 2),
|
||||
selected = darkMode,
|
||||
onClick = { onDarkModeChanged(true) }
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user