Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-09-28 01:18:55

Tio
Member
Registered: 2021-09-26
Posts: 79

Sync font with the QT apps automatically

I am bothering you again with these sort of things, but we strive to make our linux distro (based on xfce) very usable. We managed to sync the themes and icons across gtk and qt apps automatically but the font is an issue....is there a way to sync the fonts in XFCE for the QT apps too, automatically?

Offline

#2 2022-09-28 01:45:53

Tio
Member
Registered: 2021-09-26
Posts: 79

Re: Sync font with the QT apps automatically

Like for example adding these to etc/environment will sync gtk with qt in terms of themes

QT_QPA_PLATFORMTHEME="qt5ct"
QT_QUICK_CONTROLS_STYLE="qt5ct"

Isn't there something similar for the font style?

Offline

#3 2022-09-28 01:52:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,528

Re: Sync font with the QT apps automatically

QGnomePlatform? I've never used it but it looks interesting.

Offline

#4 2022-09-28 02:03:00

Tio
Member
Registered: 2021-09-26
Posts: 79

Re: Sync font with the QT apps automatically

Hmm so that could also work on non-gnome but gtk-based distros? Will try thanks. Also seems to work if I add to etc/environment

QT_QPA_PLATFORMTHEME="gtk2"
QT_QUICK_CONTROLS_STYLE="gtk2"


Instead of using the qt5ct. I wonder if this solution is ok....but seems to sync fonts, themes, and icons across qt and gtk.

EDIT: Yes they say "This library is used automatically in Gtk based desktops such as Gnome, Cinnamon or Xfce."

Last edited by Tio (2022-09-28 02:03:32)

Offline

#5 2022-09-28 02:13:04

Tio
Member
Registered: 2021-09-26
Posts: 79

Re: Sync font with the QT apps automatically

Yeah QGnomePlatform works great it seems. Thank you very much indeed! smile

Offline

#6 2022-09-28 02:45:20

Tio
Member
Registered: 2021-09-26
Posts: 79

Re: Sync font with the QT apps automatically

Actually that one only works with specific themes....so not helpful. But using our scripts +

QT_QPA_PLATFORMTHEME="gtk2"
QT_QUICK_CONTROLS_STYLE="gtk2"

in etc/environment seems to do the trick big_smile

We have to test more ofc. Thanks again, as always.

Offline

Board footer

Powered by FluxBB