Custom Status Bar / Safe Area Background Color for Light and Dark Themes (or Dynamic Screen Backgrounds)

image

Hi everyone,

We are currently building an app for a client that includes dynamic Light and Dark mode options. However, we have run into a major styling limitation regarding the top safe area (status bar where the time/battery is shown) and the bottom safe area.

When we set the screen background to transparent, the top and bottom safe area zones always render in a dark color / black.

  • Dark Mode: Works as expected and looks seamless.

  • Light Mode: Displays noticeable black rectangles at the top and bottom of the screen because the safe area background remains dark while the main body turns light.

We have spent considerable time trying to find a workaround without success.

Questions / Feature Requests:

  1. Dynamic Safe Area Color: Is there a way (via custom CSS, component settings, or settings) to force the top and bottom safe area backgrounds to adapt dynamically when the user switches themes?

  2. Dual-Color Screen Backgrounds in Editor: Would it be possible to allow setting two background colors per screen in the editor—one for Light Mode and one for Dark Mode—or allow locking/overriding the safe area color globally?

Has anyone encountered this issue and found a working workaround, or can the Adalo team advise on how to properly handle safe area colors in dual-theme apps?

Thanks in advance for any insights or solutions!

Hi @Santiago,

Does this setting help, in screen settings?

image

If it doesn’t, this might be a bug so would you be able to submit a ticket? : New Bug Form Will bring this into the team too!

Thank you and have a great day!

No, that’s not what I’m looking for. That setting only changes the text, time, and battery icon colors, etc. What I need is a configuration option for dark mode and light mode, because right now it looks really bad. If I set it to transparent, it’s even worse, because Adalo stacks screens on top of each other and you can see everything from the page underneath…