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:
another-simple-pixel
2026-07-05 16:16:06 -07:00
co-authored by Claude Opus 4.8
parent bbff7d60ee
commit 17b81e1450
@@ -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)) {