mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
feat: match the theme color of status bar in light/dark mode #1340
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @coxde on GitHub (Jun 21, 2024).
Is your feature request related to a problem? Please describe.
Now the PWA
theme_coloris hard-coded to#343541(according to my search), which makes the status bar doesn't looks like a native app in light mode.Describe the solution you'd like
I'm not sure but there should be a method to match the color.
Describe alternatives you've considered
N/A
Additional context
See also:
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Customize_your_app_colors
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
https://github.com/elk-zone/elk/issues/941
https://github.com/cheeaun/phanpy/issues/231
@tjbck commented on GitHub (Jun 21, 2024):
Just pushed a commit to dev, let me know if that did anything for you!
@coxde commented on GitHub (Jun 21, 2024):
Thanks for your quick response! Now it can change color based on light/dark mode.
One nitpick is that the white/black color and the status bar don't exactly match the white/black of the app theme, it would be better if they could match!
@tjbck commented on GitHub (Jun 22, 2024):
The updated implementation delegates setting the colour to the device, further improvement won't be possible unless we overhaul the manifest.json code entirely. Thanks for the feedback!