From 1124209a416b90827eddfb7cd0af721bb547d5a1 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Mon, 6 Jul 2026 05:46:25 -0700 Subject: [PATCH] Apply the SIMPLEX chat list divider on desktop too The row-divider fix for the SIMPLEX chat list was added on Android only. This brings the same flat, slightly-lighter-than-background divider to the desktop chat list (both selected and normal rows); other themes keep the Material default. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../views/chatlist/ChatListNavLinkView.desktop.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt index c875c0c9da..08adc48f5a 100644 --- a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt +++ b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt @@ -12,6 +12,9 @@ import androidx.compose.ui.node.DelegatableNode import androidx.compose.ui.node.DrawModifierNode 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.* object NoIndication : IndicationNodeFactory { @@ -58,7 +61,13 @@ actual fun ChatListNavLinkLayout( } } } - if (selectedChat.value || nextChatSelected.value) { + val activeThemeBase = CurrentColors.collectAsState().value.base + // SIMPLEX uses a flat slightly-lighter-than-bg divider; other themes get the Material default. + if (activeThemeBase == DefaultTheme.SIMPLEX) { + val simplexDividerColor = oklch(0.2104f, 0.0407f, 276.40f) // sRGB #131729 + if (selectedChat.value || nextChatSelected.value) Divider(color = simplexDividerColor) + else Divider(Modifier.padding(horizontal = 8.dp), color = simplexDividerColor) + } else if (selectedChat.value || nextChatSelected.value) { Divider() } else { Divider(Modifier.padding(horizontal = 8.dp))