Skip to content

Commit

Permalink
Update ListPreference divider color and width (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
lm41 committed May 7, 2024
1 parent e333ed9 commit 4f20f92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fun <T : PreferenceModel, V : Any> PreferenceUiScope<T>.ListPreference(
} else { summarySwitchDisabled },
trailing = {
if (switchPrefValue != null) {
val dividerColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.12f)
val dividerColor = MaterialTheme.colorScheme.outlineVariant
Box(
modifier = Modifier
.size(LocalViewConfiguration.current.minimumTouchTargetSize + DpSize(8.dp, 0.dp))
Expand All @@ -252,6 +252,7 @@ fun <T : PreferenceModel, V : Any> PreferenceUiScope<T>.ListPreference(
color = dividerColor,
start = Offset(0f, size.height * 0.1f),
end = Offset(0f, size.height * 0.9f),
strokeWidth = 2f
)
},
contentAlignment = Alignment.Center,
Expand Down

0 comments on commit 4f20f92

Please sign in to comment.