-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following system color scheme #50
Comments
If I'm not wrong for COSMIC desktop it can communicate via dbus to set proper color scheme, not sure about different desktops. libcosmic should be able to follow system wide set color scheme but also don't know how it will works in sandbox. |
We have a standardized way to do this; the |
Thank you! I will follow this and look how cosmic handle it. It should be implemented in portal right?
Well, I'm not a professional programmer or something like that, just a hobbyist and doing what I'm like to doing, so I assume the issue may be on my side instead of libcosmic. Just need to look closer into it but info provided by you is helpful. Thank you. |
Apps built with libadwaita just follow the portal setting without any manual work from the developer side; I assume that the same would be ideal for libcosmic as well. Does libcosmic have a way to read and interact with the system styling like |
Seems like it does. |
Yeah, if we talking about COSMIC desktop it will follow system color scheme very well including custom colors etc. I'm not sure how to apply this for flatpak. From what I know, for COSMIC it should communicate via dbus if I'm not wrong, but not sure about different desktops. |
Ok, it seems it should be done by xdg-desktop-portals. I will look into cosmic's one and see if it's implemented. |
Well, we got it in xdg-desktop-portal, so basically what you gave before. Ok. I got something, probably it should be easy to add. |
@bragefuglseth, |
The app is still always in dark mode. I get these errors:
I'm running Fedora Silverblue 39, and tested the app both by building it in a toolbox and by building the flatpak. |
Thank you for your testing. Tomorrow im gonna fix and will test it better. At least we have some errors ^^ |
@bragefuglseth, Those errors comes from dbus-config feature flag. We need to have configured cosmic-settings-daemon with dbus to make it work. Instead of this, I patched libcosmic: pop-os/libcosmic#584 (so we should wait) and made a change for Quick WebApps. If they merge this PR, it should works as expected. In this implementation we just losing changing color scheme on runtime. But it will require more work to fix it. For now I think this should do the job. |
The app doesn't seem to follow the system color scheme (default, prefer-light, prefer-dark, etc.) Admittedly I don't know if this is an issue with the app or libcosmic, but if possible, it would be nice if it followed the system color scheme automatically (as defined by the freedesktop portal).
The text was updated successfully, but these errors were encountered: