Manjaro Difference between revisions of "Set all Qt app's to use GTK+ font & theme settings"

Difference between revisions of "Set all Qt app's to use GTK+ font & theme settings"

From Manjaro
imported>Handy
imported>D7rk
Line 18: Line 18:
2) Set environment variable in '''/etc/environment''' & add the following lines:
2) Set environment variable in '''/etc/environment''' & add the following lines:


'''QT_STYLE_OVERRIDE=gtk2'''
'''QT_STYLE_OVERRIDE='gtk2''''


'''QT_QPA_PLATFORMTHEME=qt5ct'''
'''QT_QPA_PLATFORMTHEME='qt5ct''''


3) Restart the system
3) Restart the system

Revision as of 10:48, 1 August 2016

29-July-2016: Updated method


Introduction

For those of us that use Desktop Environments &/or Window Managers that use GTK+ , this fix is particularly helpful.

For those such as myself that run 1080p or higher screen resolutions on largish monitors it can be quite a strain on the eyes when you can't control the size of the fonts that an application uses.

This fix makes your Qt app's use your GTK+ theme (colours & such) & your chosen font settings.


How do you do it?

1) Install qt5-styleplugins and qt5ct

2) Set environment variable in /etc/environment & add the following lines:

QT_STYLE_OVERRIDE='gtk2'

QT_QPA_PLATFORMTHEME='qt5ct'

3) Restart the system

4) Start qt5ct from terminal and select gtk2

5) Start one more time qt5ct from terminal with sudo rights (for qt apps which required sudo rights like manjaro-settings-manager) and select gtk2


Links

This ArchWiki page goes into far more detail:

Uniform look for Qt and GTK applications [1]


Support

Following is a link to this page's forum counterpart where you can post any related feedback: [2]


Cookies help us deliver our services. By using our services, you agree to our use of cookies.