summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2024-04-08 11:40:50 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2024-04-08 11:40:50 +0200
commit08e69a09cd9bb5bf9be5a02dd9196715f696cd76 (patch)
tree74721d8cb6c7a849a1df1d83abe6522ce763ea44
parent86d0ce199e591bef64edc964b6a7e4d1d0d21dd4 (diff)
parentb7ad5b6681bf4233eb7b5166e4da20ff7e13a8d7 (diff)
downloadmullvadvpn-08e69a09cd9bb5bf9be5a02dd9196715f696cd76.tar.xz
mullvadvpn-08e69a09cd9bb5bf9be5a02dd9196715f696cd76.zip
Merge branch 'add-background-to-custom-lists-description-text-in-select-droid-827'
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt
index 9144903f63..705877951b 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt
@@ -320,6 +320,7 @@ fun SelectLocationScreen(
customLists(
customLists = state.filteredCustomLists,
selectedItem = state.selectedItem,
+ backgroundColor = backgroundColor,
onSelectRelay = onSelectRelay,
onShowCustomListBottomSheet = {
bottomSheetState =
@@ -375,6 +376,7 @@ private fun LazyListScope.loading() {
private fun LazyListScope.customLists(
customLists: List<RelayItem.CustomList>,
selectedItem: RelayItem?,
+ backgroundColor: Color,
onSelectRelay: (item: RelayItem) -> Unit,
onShowCustomListBottomSheet: () -> Unit,
onShowEditBottomSheet: (RelayItem.CustomList) -> Unit
@@ -413,14 +415,16 @@ private fun LazyListScope.customLists(
item {
SwitchComposeSubtitleCell(
text = stringResource(R.string.to_add_locations_to_a_list),
- modifier = Modifier.animateItemPlacement().animateContentSize()
+ modifier =
+ Modifier.background(backgroundColor).animateItemPlacement().animateContentSize()
)
}
} else {
item(contentType = ContentType.EMPTY_TEXT) {
SwitchComposeSubtitleCell(
text = stringResource(R.string.to_create_a_custom_list),
- modifier = Modifier.animateItemPlacement().animateContentSize()
+ modifier =
+ Modifier.background(backgroundColor).animateItemPlacement().animateContentSize()
)
}
}