fix(#290): code health — magic colors, flag params, silent catch (#353)

* fix(#290): use LocalHermesStatusColors instead of magic colors (CODE-33)

* fix(#290): replace boolean-flag params with sealed NavIcon class (CODE-37)

* fix(#290): resolve compilation errors — Color import + nullable NavIcon params

---------

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-06-24 21:26:32 +03:00
1 parent cc40658661
commit f190b67ee6
22 files changed
+73 -42

No files matched your search

@@ -109,6 +109,7 @@ import com.m57.hermescontrol.notification.NotificationHelper
import com.m57.hermescontrol.theme.StatusRed
import com.m57.hermescontrol.ui.common.EmptyState
import com.m57.hermescontrol.ui.common.HermesScaffold
import com.m57.hermescontrol.ui.common.NavIcon
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
@@ -296,7 +297,7 @@ fun ChatScreen(
}
}
},
onOpenDrawer = onOpenDrawer,
navigationIcon = onOpenDrawer?.let { NavIcon.Menu(it) },
snackbarHost = {
SnackbarHost(snackbarHostState) { data ->
Snackbar(