Merge pull request #2922 from element-hq/feature/bma/iterateOnPreferenceDesign2

Iterate on preference design
This commit is contained in:
Benoit Marty 2024-05-28 00:36:28 +02:00 committed by GitHub
commit 8967b6c959
129 changed files with 484 additions and 497 deletions

View file

@ -399,7 +399,10 @@ private fun TopicSection(
roomTopic: RoomTopicState,
onActionClicked: (RoomDetailsAction) -> Unit,
) {
PreferenceCategory(title = stringResource(CommonStrings.common_topic)) {
PreferenceCategory(
title = stringResource(CommonStrings.common_topic),
showTopDivider = false,
) {
if (roomTopic is RoomTopicState.CanAddTopic) {
PreferenceText(
title = stringResource(R.string.screen_room_details_add_topic_title),
@ -489,7 +492,7 @@ private fun SecuritySection() {
@Composable
private fun OtherActionsSection(isDm: Boolean, onLeaveRoom: () -> Unit) {
PreferenceCategory(showDivider = false) {
PreferenceCategory(showTopDivider = true) {
ListItem(
headlineContent = {
val leaveText = stringResource(