-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update Linux/XDG app settings to delegate theme to new fd.o color-scheme #2657
Comments
This comment has been minimized.
This comment has been minimized.
I have dug a bit deeper and this appears to be a proper freedesktop specification now that should be supported in Gnome 42 and ElementaryOS 6.1 (probably KDE Plasma in the future as well). This link has pretty much all the details: https://blogs.gnome.org/alexm/2021/10/04/dark-style-preference/ |
That blog post is helpful, but I still cannot find any documentation that is not in a gnome blog post or wiki ;) |
True. That part is a bit weird but I think the above link should have most of what is needed to implement it. I did found out about this from the elementary OS 6.1 release notes though: https://blog.elementary.io/elementary-os-6-1-available-now/. |
Don't they get it for free from using the latest Gnome libs? i.e. it may still be proposed at the Gnome side rather than ratified standard... |
Maybe. Seems like they really want it to be a standard though. Maybe the standard just hasn't been published yet? Seems like they have good intentions for making it a standard either way. We are probably closer now than we ever have been with this. |
There is now a decent impl to reference pbek/QOwnNotes@3933a89 |
I made an implementation here: fyne-io/fyne-x#48 |
@metal3d Would you care to bring the functionality specific to this issue into the main code base here? We already follow light/dark themes on Windows/macOS and it would be great if we do so on Linux as well :) |
Yes, I can propose the theme here. Of course, as you see, I found ways to follow dark/light theme on Linux, but I think there is a few of decision to take on what I did. Let me a few minute to make the PR 😄 |
This is done here: #3410 |
I think there was a misunderstanding here. I meant the part about only switching the default FyneTheme between dark and light (exactly what this issue relates to), not bringing in everything about icons and such (at least not yet). |
Ah, I see. I missed that one, it seems. Thanks :) |
Not at all, it is new this morning after some chat in contributor channel last night |
Nicely completed, thanks @metal3d |
Updating the
app/app_xdg.go
functiondefaultVariant
to look up the value now defined "globally" https://github.com/flatpak/xdg-desktop-portal/blob/d7a304a00697d7d608821253cd013f3b97ac0fb6/data/org.freedesktop.impl.portal.Settings.xml#L33-L45The text was updated successfully, but these errors were encountered: