From 1941e8910de8c4a48cbfa927c859b0b8f98c7f00 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sun, 5 Jul 2026 16:16:13 -0700 Subject: [PATCH] Add a faint divider between rows in the SIMPLEX chat list On SIMPLEX the chat-list rows fell back to the default divider, which was too bright over the dark list background. They now get a flat line just slightly lighter than the background; the other themes keep the default. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../views/chatlist/ChatListNavLinkView.android.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/androidMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.android.kt b/apps/multiplatform/common/src/androidMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.android.kt index 9a3d9e5e4f..ab4d2f0804 100644 --- a/apps/multiplatform/common/src/androidMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.android.kt +++ b/apps/multiplatform/common/src/androidMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.android.kt @@ -8,6 +8,9 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import chat.simplex.common.platform.onRightClick +import chat.simplex.common.ui.theme.CurrentColors +import chat.simplex.common.ui.theme.DefaultTheme +import chat.simplex.common.ui.theme.oklch import chat.simplex.common.views.helpers.* @Composable @@ -38,5 +41,11 @@ actual fun ChatListNavLinkLayout( DefaultDropdownMenu(showMenu, dropdownMenuItems = dropdownMenuItems) } } - Divider(Modifier.padding(horizontal = 8.dp)) + // SIMPLEX uses a flat slightly-lighter-than-bg divider; other themes get Material default Divider color. + val activeThemeBase = CurrentColors.collectAsState().value.base + if (activeThemeBase == DefaultTheme.SIMPLEX) { + Divider(Modifier.padding(horizontal = 8.dp), color = oklch(0.2104f, 0.0407f, 276.40f)) // sRGB #131729 + } else { + Divider(Modifier.padding(horizontal = 8.dp)) + } }