Skip to content

Commit

Permalink
fix: bottom-sheet-dividers [WPB-3985] (#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas authored Apr 18, 2024
1 parent 9975e60 commit 3d3814e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fun GroupConversationSettings(
)
}

item { WireDivider(color = colorsScheme().outline) }
item { WireDivider(color = colorsScheme().outlineVariant) }

item {
ServicesOption(
Expand Down Expand Up @@ -152,7 +152,7 @@ fun GroupConversationSettings(
)
}
}
item { WireDivider(color = colorsScheme().outline) }
item { WireDivider(color = colorsScheme().outlineVariant) }
item {
ReadReceiptOption(
isSwitchEnabled = state.isUpdatingReadReceiptAllowed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ fun buildMenuSheetItems(items: List<@Composable () -> Unit>) {
items.forEach { itemBuilder ->
// Make sure that every item added to this list is actually not empty. Otherwise, the divider will be still drawn and give the
// impression that it has extra thickness
WireDivider()
itemBuilder()
WireDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import com.wire.android.ui.common.dimensions
import com.wire.android.ui.common.divider.WireDivider
import com.wire.android.ui.theme.wireTypography

@Composable
Expand Down Expand Up @@ -59,6 +60,7 @@ fun ModalSheetHeaderItem(header: MenuModalSheetHeader = MenuModalSheetHeader.Gon
style = MaterialTheme.wireTypography.title02
)
}
WireDivider()
}
}
}
Expand Down

0 comments on commit 3d3814e

Please sign in to comment.