Skip to content
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

Support for gtk4 #129

Open
arjunmenon opened this issue Apr 12, 2024 · 6 comments
Open

Support for gtk4 #129

arjunmenon opened this issue Apr 12, 2024 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@arjunmenon
Copy link

Hi there, is there a roadmap to support Gtk4 for linux?

@frang75
Copy link
Owner

frang75 commented Apr 13, 2024

Hi @arjunmenon
Still no, but is a good feature. I'll keep this open.

@frang75 frang75 added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 13, 2024
@frang75 frang75 self-assigned this Apr 13, 2024
@CodigoCristo
Copy link

Implement it to libadwaita

@laoshaw
Copy link

laoshaw commented Aug 20, 2024

gtk4 support will be great

@M0JXD
Copy link

M0JXD commented Feb 28, 2025

I just want to voice an opposite opinion here.
GTK4 apps seem to only look native on GNOME and Pantheon, the only GTK4 DEs.

In other DE's this is not the case. For example:
If I install Pluma (GTK3) on KDE Plasma, it uses breeze-gtk and looks native.
But if I install GNOME Clocks (GTK4), it uses libadwaita and is out of place.

I experience the same problem in GTK3 DEs like Cinnamon - GTK4 apps use libadwaita instead of the system theme and look out of place.

Most Desktop Environments are GTK3 based anyways (Cinnamon, Mate, XFCE, Budgie...).
Thanks to qt5gtk2/qt6gtk2, I can make Qt apps look more native than GTK4 apps on these DEs.

GTK3 apps still look mostly native on GNOME - there's a reason they still support it for bug-fixes etc.

My understanding is that NAppGUI is to be as backwards compatible as possible (working on old Windows and MacOS versions) and to use the native look. Moving to GTK4 would hurt this goal for Linux distros.

Also, thanks for NAppGUI - it's awesome :)

@frang75
Copy link
Owner

frang75 commented Mar 2, 2025

Hi @M0JXD!

Very interesting point of view. Thanks for sharing and enriching the debate. However, GTK4 will never replace GTK3 in NAppGUI, it will only extend the SDK allowing to choose one or the other through the option:

-DCMAKE_TOOLKIT=GTK3
-DCMAKE_TOOLKIT=GTK4

https://nappgui.com/en/guide/win_mac_linux.html#h7
https://nappgui.com/en/guide/win_mac_linux.html#h9

At the moment, only GTK3 is accepted. On the other hand, I have an experimental branch to support GTK2. The reason is to be able to use NAppGUI on very old Linux versions like Ubuntu 10, where GTK3 did not exist yet. I know that this has no "commercial" application today, but it does have an academic purpose.

@M0JXD
Copy link

M0JXD commented Mar 2, 2025

Hi @frang75 🙂️

That's great if it's not intended to replace GTK3, I wasn't sure when reading the thread - can never complain about NAppGUI supporting more backends!

GTK2 is a great edition, I think that given Raspberry Pi OS uses LXDE there's a possible commercial use there.

Thanks for your great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants