From b065956aece6214c73494387248460fe6fdc4a04 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 24 Oct 2025 19:05:35 -0400 Subject: [PATCH] Normalize thicknesses of the divisors --- .../lists/followsets/FollowSetScreen.kt | 17 +++++------------ .../followsets/FollowSetsManagementDialog.kt | 5 +++-- .../loggedIn/settings/SecurityFiltersScreen.kt | 2 +- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt index 97144ed83..8a2d96632 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt @@ -79,6 +79,7 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.lists.FollowSetFeedViewMode import com.vitorpamplona.amethyst.ui.screen.loggedIn.qrcode.BackButton import com.vitorpamplona.amethyst.ui.stringRes import com.vitorpamplona.amethyst.ui.theme.ButtonBorder +import com.vitorpamplona.amethyst.ui.theme.DividerThickness import com.vitorpamplona.amethyst.ui.theme.FeedPadding import com.vitorpamplona.amethyst.ui.theme.HalfPadding import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer @@ -283,12 +284,8 @@ private fun FollowSetListView( fontSize = 18.sp, fontWeight = FontWeight.Bold, ) - HorizontalDivider( - modifier = Modifier.fillMaxWidth(), - thickness = 2.dp, - color = MaterialTheme.colorScheme.onBackground, - ) } + HorizontalDivider(thickness = DividerThickness) } itemsIndexed(publicMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> FollowSetListItem( @@ -310,11 +307,7 @@ private fun FollowSetListView( fontSize = 18.sp, fontWeight = FontWeight.Bold, ) - HorizontalDivider( - modifier = Modifier.fillMaxWidth(), - thickness = 2.dp, - color = MaterialTheme.colorScheme.onBackground, - ) + HorizontalDivider(thickness = DividerThickness) } itemsIndexed(privateMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> FollowSetListItem( @@ -369,7 +362,7 @@ fun FollowSetListItem( ) } } - HorizontalDivider() + HorizontalDivider(thickness = DividerThickness) } } @@ -426,7 +419,7 @@ fun ListActionsMenu( onCloseMenu() }, ) - HorizontalDivider() + HorizontalDivider(thickness = DividerThickness) DropdownMenuItem( text = { Text("Delete List") diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetsManagementDialog.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetsManagementDialog.kt index 06986bee0..ff6894fc7 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetsManagementDialog.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetsManagementDialog.kt @@ -90,6 +90,7 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.lists.FollowSetFeedViewMode import com.vitorpamplona.amethyst.ui.screen.loggedIn.lists.NewSetCreationDialog import com.vitorpamplona.amethyst.ui.stringRes import com.vitorpamplona.amethyst.ui.theme.ButtonBorder +import com.vitorpamplona.amethyst.ui.theme.DividerThickness import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer import com.vitorpamplona.amethyst.ui.theme.StdVertSpacer @@ -539,7 +540,7 @@ fun FollowSetCreationItem( val context = LocalContext.current val setTypeLabel = stringRes(context, if (setIsPrivate) R.string.follow_set_type_private else R.string.follow_set_type_public) - HorizontalDivider() + HorizontalDivider(thickness = DividerThickness) Column( modifier = modifier @@ -586,5 +587,5 @@ fun FollowSetCreationItem( color = Color.Gray, ) } - HorizontalDivider() + HorizontalDivider(thickness = DividerThickness) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/SecurityFiltersScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/SecurityFiltersScreen.kt index 1adbc1698..8139a0471 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/SecurityFiltersScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/SecurityFiltersScreen.kt @@ -169,7 +169,7 @@ fun SecurityFiltersScreen( HeaderOptions(accountViewModel) - HorizontalDivider() + HorizontalDivider(thickness = DividerThickness) ScrollableTabRow( containerColor = MaterialTheme.colorScheme.background,