Skip to content

K2GO-439 fix(theme): dark status bar icons in light theme - #624

Merged
luisguzman-adfa merged 2 commits into
mainfrom
fix/K2GO-439-light-theme-status-bar-icons
Oct 3, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
fix/K2GO-439-light-theme-status-bar-icons

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Follow-up to K2GO-439 (targetSdk 35 edge-to-edge).

Theme.K2Go never set windowLightStatusBar, so the status bar icons stayed light
in both themes. targetSdk 35 forces edge-to-edge and drops the system auto-scrim,
so in light theme the light icons were unreadable on the light background.

Set windowLightStatusBar and windowLightNavigationBar on Theme.K2Go from a
day/night qualified bool (values[-night]/bools.xml), so the theme is the single
source (no code path sets bar appearance).

Verification: resources link clean (processStandardDebugResources); visual check
on emulator/device.

Theme.K2Go never set windowLightStatusBar, so the status bar icons stayed light
in both themes. targetSdk 35 forces edge-to-edge and drops the system auto-scrim,
so in light theme the light icons became unreadable on the light background.
Set windowLightStatusBar and windowLightNavigationBar from a day/night qualified
bool (values[-night]/bools.xml), the same pattern as the color tokens.
Lint NewApi blocks android:windowLightNavigationBar in values/ (it needs API 27,
minSdk is 24). The reported issue is the status bar, and the navigation bar
renders correctly, so drop the attr instead of gating it in values-v27.
windowLightStatusBar (API 23) stays and still fixes the light-theme icons.
@luisguzman-adfa
luisguzman-adfa merged commit 6addb67 into main Oct 3, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/K2GO-439-light-theme-status-bar-icons branch October 3, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant