CrimsonAS / gtkplatform

Run Qt applications using gtk+ as a windowing system.

Home Page:https://crimson.no

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTK+3 theme is not applied

actionless opened this issue · comments

theme is set in both ~/.config/gtk-3.0/settings.ini and in x settings daemon (and so it works as expected in all the gtk3 apps, firefox and chrom*) but when running Qt5 apps via gtkplatform apps always end up with default Adwaita theme.

btw theme got applied to the menubar and menus:

2018-05-08-184745_1605x1019_scrot

The adwaita-qt theme plugin which gtkplatform relies on for the appearance of things other than menus would likely be a better place to look/file this - I'm not sure it supports custom themes offhand.

after roughly reading it seems it's sorta hardcoded to adwaita theme

and also i don't even see gtk in deps: https://github.com/FedoraQt/adwaita-qt/blob/master/CMakeLists.txt

That doesn't surprise me much. gtk removed their theme API a number of releases ago, making it very difficult to match its theming behaviour. There is GtkStyleContext, but using that is not trivial (and neither is QStyle the easiest thing to use).