1
0
forked from GRIN/grim

Android: dark status-bar icons on the yellow GRIM/onboarding header

In dark theme the wallet list, app settings, wallet creation and onboarding
leave the bright accent-yellow title_panel_bg showing under the status bar,
but status_bar_white_icons() returned the dark-theme default (white) — white
icons are illegible on yellow. Force dark icons on every non-Goblin-surface
screen (the Goblin surface covers the inset and sets its own per-tab flag).
This commit is contained in:
2ro
2026-06-15 21:42:43 -04:00
parent 6a0c2565b5
commit a35fb7956c
+10
View File
@@ -202,6 +202,16 @@ impl ContentContainer for WalletsContent {
// keeps it through its identity step, when the new wallet is already
// open but not yet selected).
let onboarding_active = !showing_wallet && self.onboarding_active();
// Keep the Android status-bar icons readable against whatever paints the
// top strip. Every screen outside the Goblin wallet surface — the wallet
// list, app settings, wallet creation AND onboarding — leaves the bright
// accent-yellow `title_panel_bg` showing under the status bar, which needs
// DARK icons; a dark global theme would otherwise pick white icons that
// are illegible on yellow. The Goblin surface covers the inset itself and
// sets its own per-tab flag (Pay is yellow, the rest dark).
if !showing_wallet {
crate::gui::theme::set_status_surface_yellow(true);
}
let dual_panel = is_dual_panel_mode(ui);
let content_width = ui.available_width();
let list_hidden = showing_settings