Skip to content

Conversation

@Beerosagos
Copy link
Collaborator

@Beerosagos Beerosagos commented Nov 25, 2025

The colors of both the status and the navigation bars and their icons
were not always matching the app background.

Also, forcing the app theme in the settings and then switching the OS
theme was sometime causing the bar icons to change and blend with the
bars.

This commit does the following:

  • Drives the colors of both bars and icons in the setDarkTheme method
    to avoid misalignemnts with the app theme
  • Removes the onConfigurationChanged overriding, which was conficting
    with the implemented theme handling, which is delegated to the frontend
    DarkmodeProvider. Listening of OS theme changes in the activity must be
    avoided as it could fire unwanted changes in the app theme.
  • Improve the app static styles, to reduce the color flickering before
    setDarkTheme() is called for the first time.
  • Apply matching backgrounds to the root layout and WebView so the bars
    blend with the app in both light and dark modes.

Also fixes navigation bar overlap.

benma's agent and others added 2 commits November 25, 2025 15:13
Android 15 (API 35) enforces edge-to-edge display by default, causing
the app to draw behind the system navigation bar. This commit adds to
the root layout to prevent the app content from overlapping with the
system navigation bar.
The colors of both the status and the navigation bars and their icons
were not always matching the app background.

Also, forcing the app theme in the settings and then switching the OS
theme was sometime causing the bar icons to change and blend with the
bars.

This commit does the following:
- Drives the colors of both bars and icons in the setDarkTheme method
to avoid misalignemnts with the app theme
- Removes the onConfigurationChanged overriding, which was conficting
with the implemented theme handling, which is delegated to the frontend
DarkmodeProvider. Listening of OS theme changes in the activity must be
avoided as it could fire unwanted changes in the app theme.
- Improve the app static styles, to reduce the color flickering before
setDarkTheme() is called for the first time.
- Apply matching backgrounds to the root layout and WebView so the bars
blend with the app in both light and dark modes.
@Beerosagos
Copy link
Collaborator Author

Tested on Android 7,8,13,15,16

@Beerosagos Beerosagos requested a review from benma November 25, 2025 15:01
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