toolbar color

This commit is contained in:
Evgeny @ SimpleX Chat
2026-05-20 18:09:00 +00:00
parent b9d5f7b2ef
commit 81a65c6ec3
2 changed files with 3 additions and 3 deletions
@@ -380,7 +380,7 @@ private fun GlobalSettingsSection(
SectionItemView(
click = {
ModalManager.start.showModalCloseable { close ->
ModalManager.start.showModalCloseable(background = canvasColorForCurrentTheme()) { close ->
SettingsView(chatModel, setPerformLA, close)
}
},
@@ -117,9 +117,9 @@ class ModalManager(private val placement: ModalPlacement? = null) {
}
}
fun showModalCloseable(settings: Boolean = false, showClose: Boolean = true, id: ModalViewId? = null, endButtons: @Composable RowScope.() -> Unit = {}, content: @Composable ModalData.(close: () -> Unit) -> Unit) {
fun showModalCloseable(settings: Boolean = false, showClose: Boolean = true, id: ModalViewId? = null, background: Color = Color.Unspecified, endButtons: @Composable RowScope.() -> Unit = {}, content: @Composable ModalData.(close: () -> Unit) -> Unit) {
showCustomModal(id = id) { close ->
ModalView(close, showClose = showClose, endButtons = endButtons, content = { content(close) })
ModalView(close, showClose = showClose, background = background, endButtons = endButtons, content = { content(close) })
}
}