-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Consider avoiding libadwaita in favor of GTK #1378
Comments
Thanks :) How does this translate into |
Yes this would mean removing the Then you switch to the GTK namespace and that's mostly it as libadwaita is inheriting from GTK. Both libraries provide an I think you would mostly loose rounded corners on Linux and gain cross desktop compatibility. |
Gotcha, thank you Badcel! I will try to work on this in the next few days |
If I might chime in on this issue: I noticed you changed the code to check the GTK theme name in order to check for dark mode. To give a few details: Instead, the proper way would be to check the Settings Portal, part of the XDG Desktop Portals. The dark mode preference of Gnome sets the value read by the portal. And the libadwaita code you've used read the dark mode preference from this portal. Since GTK does not include support for a dark mode preference, you would need to read the portal directly. You could do this by directly accessing the DBus interface with an library like Tmds.Dbus. There's also a C library called libportal, but I'm not sure what the easier way would be. TLDR: Using the GTK theme name to check for dark mode is not ideal (maybe for a fallback), ideally the Settings portal should be used. |
Hello, Thank you for much for reporting this regression. I unfortunately haven't been able to reproduce it on Linux Mint and Ubuntu. My Ubuntu, in particular, uses Gnome Desktop, but the theme has "dark" in its name, so the issue does not reproduce there. I did follow @badcel recommendation in #1381 and tested the change on Ubuntu and Mint, and so far, it detects well the theme without needed to fallback on string detection. I will try to test on Fedora, but I wouldn't mind if you give it a try too :) |
Well, Ubuntu had a dark mode setting using the GTK theme name before the Settings portal was finalized. Guess they still set the theme name. Fedora on the other hand uses more or less upstream Gnome, so there it only sets the setting read by the portal. |
Originally posted by @probonopd in #1322 (comment)
As the DevToys Linux version is primarily a wrapper around a webview it potentially does not benefit as much from libadwaita as an application with native controls.
Libadwaita apps are generally tailored to the gnome desktop which may result in a reduced compatibility with other desktop environments.
Under this aspects it could be worth to verify what would happen if DevToys was based on the more general GTK instead of libadwaita.
The text was updated successfully, but these errors were encountered: