From b993c24be6fdbc348a7b22b9ff9b14dfcd73cf2a Mon Sep 17 00:00:00 2001 From: Diogo Date: Thu, 5 Sep 2024 10:27:20 +0100 Subject: [PATCH] gradient --- .../simplex/common/views/chatlist/UserPicker.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt index 176e2a4ceb..b716ae60ec 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt @@ -230,8 +230,19 @@ private fun InactiveUsersSection( modifier = Modifier.fillMaxWidth() ) { Row( - modifier = Modifier.fillMaxWidth().height(60.dp) + horizontalArrangement = Arrangement.End, + modifier = Modifier.fillMaxWidth().padding(end = DEFAULT_PADDING).height(60.dp) ) { + Canvas(modifier = Modifier.height(60.dp).width(200.dp)) { + drawRect( + brush = Brush.linearGradient( + colors = listOf( + Color.Transparent, + CurrentColors.value.colors.surface, + ) + ), + ) + } } IconButton( onClick = onShowAllProfilesClicked,