Always show dividers.

This commit is contained in:
Benoit Marty 2025-10-16 12:19:48 +02:00
parent cf8c8652d1
commit 5b00fcc129

View file

@ -58,7 +58,6 @@ fun DeveloperSettingsView(
// Note: this is OK to hardcode strings in this debug screen. // Note: this is OK to hardcode strings in this debug screen.
PreferenceCategory( PreferenceCategory(
title = "Feature flags", title = "Feature flags",
showTopDivider = true,
) { ) {
FeatureListContent(state) FeatureListContent(state)
} }
@ -104,7 +103,7 @@ fun DeveloperSettingsView(
state = state.rageshakeState, state = state.rageshakeState,
) )
if (state.isEnterpriseBuild) { if (state.isEnterpriseBuild) {
PreferenceCategory(title = "Theme", showTopDivider = false) { PreferenceCategory(title = "Theme") {
ListItem( ListItem(
headlineContent = { headlineContent = {
Text("Change brand color") Text("Change brand color")
@ -115,7 +114,7 @@ fun DeveloperSettingsView(
) )
} }
} }
PreferenceCategory(title = "Crash", showTopDivider = false) { PreferenceCategory(title = "Crash") {
ListItem( ListItem(
headlineContent = { headlineContent = {
Text("Crash the app 💥") Text("Crash the app 💥")
@ -124,7 +123,7 @@ fun DeveloperSettingsView(
) )
} }
val cache = state.cacheSize val cache = state.cacheSize
PreferenceCategory(title = "Cache", showTopDivider = false) { PreferenceCategory(title = "Cache") {
ListItem( ListItem(
headlineContent = { headlineContent = {
Text("Clear cache") Text("Clear cache")
@ -167,7 +166,7 @@ fun DeveloperSettingsView(
private fun ElementCallCategory( private fun ElementCallCategory(
state: DeveloperSettingsState, state: DeveloperSettingsState,
) { ) {
PreferenceCategory(title = "Element Call", showTopDivider = true) { PreferenceCategory(title = "Element Call") {
val callUrlState = state.customElementCallBaseUrlState val callUrlState = state.customElementCallBaseUrlState
val supportingText = if (callUrlState.baseUrl.isNullOrEmpty()) { val supportingText = if (callUrlState.baseUrl.isNullOrEmpty()) {