mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 00:44:27 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
17b81e1450
commit
1941e8910d
+10
-1
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user