voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Unreadable Status Bar in Light Mode

Open kwmc-lucas opened this issue 2 years ago • 6 comments

The time, battery indicator etc. are White, regardless of whether the device is in Light or Dark Mode.

The text (and icons) should be Black when in Light Mode, and White when in Dark Mode.

kwmc-lucas avatar Jun 28 '23 07:06 kwmc-lucas

This is tricky. We can force it to be white, but then it won't be translucent which means that dialogs open won't look right.

This is an unfortunate limitation of iOS PWAs. I think there's a way to get around it by dynamically switch header modes, but this isn't a super quick fix.

https://social.harding.dev/@alex/110590855343602954

aeharding avatar Jun 28 '23 16:06 aeharding

Indeed there is no way to have translucent statusbar with black text 😞

But solid statusbar

<meta
      name="apple-mobile-web-app-status-bar-style"
      content="default"
    />

is still better than having white text on white background when using light mode.

I've used the "Run JavaScript on Webpage" Shortcus action to execute the following code inside wefwef.app:

document.querySelector("meta[name=apple-mobile-web-app-status-bar-style]").setAttribute("content", "default")
completion(true)

then installed it to my home screen, until we have a better solution (if that can help anyone in the same case)

wefwef_light

valentind44 avatar Jul 01 '23 11:07 valentind44

Yeah, the problem is it looks bad with dialogs and also makes the available vertical space of dialogs less.

aeharding avatar Jul 01 '23 19:07 aeharding

@aeharding can you honestly say that the way it looks now - constantly having the core UI of the device unreadable - is worse than a solid status bar when showing dialogs?

kwmc-lucas avatar Jul 03 '23 10:07 kwmc-lucas

It's not just a solid status bar. Dialogs get shifted down from ionic, providing less vertical space for writing comments and logging in. That's the concern with @valentind44's approach.

Please, reach out to Apple about this.

aeharding avatar Jul 03 '23 15:07 aeharding

@aeharding thanks Alex, I think you saw my Mastadon post, so hopefully that helps!

Is this definitely an Apple issue, and not Ionic?

kwmc-lucas avatar Jul 03 '23 15:07 kwmc-lucas

Yes, it's 100% an apple issue. I am closing since it is resolved with the native app that has the ability to control status bar style. :)

Once Apple fixes their broken PWA support this can be reopened.

aeharding avatar Aug 05 '23 22:08 aeharding