trialuser02 / qt6gtk2

GTK+2.0 integration plugins for Qt6
GNU General Public License v2.0
50 stars 6 forks source link

Supporting Wayland and bump requirement to gtk3 #2

Open iMonZ opened 3 years ago

iMonZ commented 3 years ago

Please support Wayland and set the required version to gtk3, since gtk2 isn't supported any more (and has many problems on modern systems)

bertin0 commented 2 years ago

Wayland support would be really appreciated, as it is becoming default on many distros.

bertin0 commented 2 years ago

I also think that this should be two separate issues, one for wayland compatibility and one for gtk3.

VGrol commented 1 year ago

Seconded. Wayland support is for this is the last thing preventing my QT applications from lauching natively on Wayland.

typoworx-de commented 11 months ago

I would also love support for gtk3. I switched to recent ubuntu and noticed some software (f.e. foxit pdf reader) uses ugly File-Dialogs instead of those from my system (with f.e. custom shortcuts). With gt6gtk2 I finally got the file-dialog from my system back in those applications, but some of them look somehow not really fine anymore (theming/coloring) compared to before.

Is there any hack to get it working better with the system gnome/ui theme or is this also a topic of migration to gtk3?

typoworx-de commented 11 months ago

I would also love support for gtk3. I switched to recent ubuntu and noticed some software (f.e. foxit pdf reader) uses ugly File-Dialogs instead of those from my system (with f.e. custom shortcuts).

Answering myself after some trying around. I hope it helps anybody who struggles with similar problems like me. The combination of gt6gtk2 and qt5-style-kvantum (debian ppa: ppa:papirus/papirus) made what I was missing. There's a good article about it here: https://ubuntuhandbook.org/index.php/2020/11/change-qt5-apps-theme-look-native-ubuntu-20-04/

It now makes my foxit-reader look more or less fine and I have back the system file-dialog. It still doesn't look perfect at all as some icons are sluggish in file-dialog but it's better than nothing.

On my good old Ubuntu 16 Notebook the world was already fine and the file-dialog for QT simply worked and looked the same than everywhere else :-/

kanashimia commented 11 months ago

On my system Qt 6.6.0 follows GTK 3 theme colours when QT_QPA_PLATFORMTHEME=gtk3 env variable being set, although with minor bugs, and it only follows palette obviously, style itself is the same. It seems to be a native Qt 6 feature, is there a need in this project at all anymore?

iMonZ commented 11 months ago

On my system Qt 6.6.0 follows GTK 3 theme colours when QT_QPA_PLATFORMTHEME=gtk3 env variable being set, although with minor bugs, and it only follows palette obviously, style itself is the same. It seems to be a native Qt 6 feature, is there a need in this project at all anymore?

Does the same work with gtk4 too?

ghpsk commented 2 weeks ago

The repository is named 'gtk2'. It's... for gtk2. I use gtk2. This is to match a gtk2 theme.

It's a gtk2 thing. Gtk2 things still exist. It's okay.