Difference between revisions of "Set all Qt app's to use GTK+ font & theme settings"
Views
Actions
Namespaces
Variants
Tools
imported>Handy |
imported>Handy |
||
Line 1: | Line 1: | ||
QGtkStyle has been removed from qt5-base 5.7.0 & | |||
added to qt5-styleplugins which is an AUR package. | |||
So since Qt 5.7 you need to install qt5-styleplugins | |||
if you are using a GTK+ based DE/WM. If you use both | |||
GTK2 & GTK3 applications you may need to find a | |||
compatible theme. | |||
=Introduction= | =Introduction= | ||
Line 23: | Line 31: | ||
Then copy the following into your text editor's new empty file: | Then copy the following into your text editor's new empty file: | ||
## Following was created to make Qt app's use | ## Following was created to make Qt app's use GTK+ | ||
## font & theme settings: | ## font & theme settings: | ||
Line 41: | Line 49: | ||
=Results= | =Results= | ||
After saving the file & rebooting, I then, with trepidation, opened the Qt 5. | After saving the file & rebooting, I then, with trepidation, opened the Qt 5.7 program called PkgBrowser... It looked just like my other GTK+ app's on my Openbox system (there is no accounting for taste!). I was very happy. | ||
Line 51: | Line 59: | ||
<br clear="all"/> | <br clear="all"/> | ||
=Links= | |||
This ArchWiki page goes into far more detail: | |||
Uniform look for Qt and GTK applications [https://wiki.archlinux.org/index.php/Uniform_Look_for_Qt_and_GTK_Applications] | |||
<br clear="all"/> | |||
=Support= | =Support= | ||
Revision as of 13:35, 7 July 2016
QGtkStyle has been removed from qt5-base 5.7.0 & added to qt5-styleplugins which is an AUR package. So since Qt 5.7 you need to install qt5-styleplugins if you are using a GTK+ based DE/WM. If you use both GTK2 & GTK3 applications you may need to find a compatible theme.
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?
For root & all users
As root, create /etc/profile.d/qt.style.overide.sh
To do that you will need to start your favourite text editor as root .
You can achieve this by using the following command at the terminal $ prompt (swap medit to the text editor of your choice):
sudo medit /etc/profile.d/qt.style.overide.sh
Then copy the following into your text editor's new empty file:
## Following was created to make Qt app's use GTK+ ## font & theme settings: export QT_STYLE_OVERRIDE='gtk2'
Save the file & reboot.
For a user account
Enter the following into ~/.xinitrc
export QT_STYLE_OVERRIDE='gtk2'
Results
After saving the file & rebooting, I then, with trepidation, opened the Qt 5.7 program called PkgBrowser... It looked just like my other GTK+ app's on my Openbox system (there is no accounting for taste!). I was very happy.
Here is a picture of the Qt 5.5 PkgBrowser program open full screen on my 1080p Openbox (GTK2) box. It is using my custom dark theme & my large font settings. My eyes love it.
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]