Add missing outlineVariant color preference
This commit is contained in:
parent
d98dcdf286
commit
24e549ec3f
@ -509,6 +509,20 @@ fun CustomColorSchemeSettingsScreen() {
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
ColorPreference(
|
||||
title = "Outline Variant",
|
||||
value = lightScheme?.let { Color(it.outlineVariant) },
|
||||
onValueChanged = {
|
||||
if (it == null) return@ColorPreference
|
||||
val colors = lightScheme ?: return@ColorPreference
|
||||
viewModel.setLightScheme(
|
||||
colors.toBuilder()
|
||||
.setOutlineVariant(it.toArgb())
|
||||
.build()
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
PreferenceCategory(stringResource(R.string.preference_category_custom_colors_dark)) {
|
||||
@ -872,6 +886,20 @@ fun CustomColorSchemeSettingsScreen() {
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
ColorPreference(
|
||||
title = "Outline Variant",
|
||||
value = darkScheme?.let { Color(it.outlineVariant) },
|
||||
onValueChanged = {
|
||||
if (it == null) return@ColorPreference
|
||||
val colors = darkScheme ?: return@ColorPreference
|
||||
viewModel.setDarkScheme(
|
||||
colors.toBuilder()
|
||||
.setOutlineVariant(it.toArgb())
|
||||
.build()
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user