Update dependencies

This commit is contained in:
MM20
2023-10-06 14:03:12 +02:00
parent 2d5a0bf5a7
commit dcdedcffc1
5 changed files with 17 additions and 19 deletions
@@ -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 }
) {
@@ -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))
}
@@ -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) }
) {