mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-18 02:10:07 +00:00
Reset the SIMPLEX chat list background when the theme changes
The dark SIMPLEX chat-list background read the active theme in a way that did not react to a live theme switch, so it stayed dark after switching to another theme until the list was rebuilt. It now reads the theme reactively and clears immediately. 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
bbff7d60ee
commit
17b81e1450
+2
-1
@@ -198,7 +198,8 @@ fun ChatListView(chatModel: ChatModel, userPickerState: MutableStateFlow<Animate
|
||||
}
|
||||
val searchText = rememberSaveable(stateSaver = TextFieldValue.Saver) { mutableStateOf(TextFieldValue("")) }
|
||||
val listState = rememberLazyListState(lazyListState.first, lazyListState.second)
|
||||
Box(Modifier.fillMaxSize().let { if (CurrentColors.value.base == DefaultTheme.SIMPLEX) it.background(oklch(0.1648f, 0.0358f, 276.77f)) else it }) {
|
||||
val activeThemeBase = CurrentColors.collectAsState().value.base
|
||||
Box(Modifier.fillMaxSize().let { if (activeThemeBase == DefaultTheme.SIMPLEX) it.background(oklch(0.1648f, 0.0358f, 276.77f)) else it }) {
|
||||
if (oneHandUI.value) {
|
||||
ChatListWithLoadingScreen(searchText, listState)
|
||||
Column(Modifier.align(Alignment.BottomCenter)) {
|
||||
|
||||
Reference in New Issue
Block a user