question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android status bar is always light in dark theme

See original GitHub issue

Home Assistant Android version: 2021.1.1-full

Android version: 11

Phone model: Pixel 3XL

Home Assistant version: 2021.2.3

Last working Home Assistant release (if known): unknown

Description of problem: After setting Android theme and Home Assistant Android app theme to dark and even after reboot the status bar and the bottom navigation bar are still light.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem: Screenshot_20210216-220005

Additional information: Not sure if it is connected with #272

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Feb 16, 2021

Ah ok so it seems that another theme was set to default because we grab that value from the frontend: https://companion.home-assistant.io/docs/integrations/theming

As of now the app relies on this value but #272 has a linked frontend issue that should solve this when the user makes a change instead of it being a global default like the service call performs

0reactions
estevez-devcommented, Feb 16, 2021

If you call https://www.home-assistant.io/integrations/frontend/#service-set_theme to default does the status bar change to what you expect?

Sorry, @dshokouhi , it works. Calling frontend.set_theme with name: default changes the status bar to dark.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android M Light and Dark status bar programmatically - how to ...
The solution posted by @Aracem is valid but, doesn't work if you try change also the background color of the status bar. In...
Read more >
Notification Panel in dark mode when dark mode is off. - Reddit
Notification Panel in dark mode when dark mode is off. I think it has something to do with the whole "colours change based...
Read more >
Dark theme - Android Developers
Dark theme applies to both the Android system UI and apps running on the device. ... Assuming that the background color is always...
Read more >
Theming status bar icons | Android | Medium
Learn how to automatically change between light and dark status bar icons on Android depending on the device theme setting.
Read more >
Status bar color in dark theme inconsistency #5232 - GitHub
Status bar color is lighter than the conversation color. That apply on every color. ... As example Android dark theme is plain dark....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found