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
(moved entire page as contents title was wrong.)
 
(Marked this version for translation)
 
(43 intermediate revisions by 10 users not shown)
Line 1: Line 1:
=Introduction=
<languages/>
__TOC__


This fix is particularly helpful for people that run 1080p or higher screen resolutions on largish monitors. As apart from making your QT app's use your GTK+ theme (colours & such) it will make them use your font settings. Which for me makes all the difference to my eyes, as I need to use large fonts.
{{SectionTemplate|<translate><!--T:16--> Overview</translate>|
<translate>
<!--T:17-->
When using a [[Desktop_Environments|Desktop Environment]] or Window Manager that doesn't allow for the settings of QT themes, you can set QT to use your GTK themes instead.  
</translate>}}


<br clear="all"/>
{{SectionTemplate|
<translate>
<!--T:18-->
Using qt5ct
</translate>
|2=
<translate>
<!--T:19-->
{{BoxInfo|note|In some Manjaro editions, this is already done for you by default}}


=How do you do it?=


As root, create '''/etc/profile.d/qt.style.overide.sh'''
<!--T:20-->
Install {{ic|qt5ct}} using your favorite package manager or the command:
{{UserCmd|command=pamac install qt5ct}}


To do that you will need to start your favourite text editor in root mode. You can this by using sudo <your text editor's name> in the terminal (or however else you get your editor to create a new file as root).


Copy the following into your text editor's new empty file with this path & name:
<!--T:21-->
Set environment variables in {{ic|~/.profile}} by adding or updating the following lines:
{{File|file=~/.profile|content=<pre>export QT_QPA_PLATFORMTHEME="qt5ct"</pre>}}


'''/etc/profile.d/qt.style.overide.sh'''


## Following was created to make Qt app's use GTK+
<!--T:22-->
## font & theme settings:
Run the application '''QT5 Configuration Manager''' from the menu or run the command {{ic|qt5ct}}.
export QT_STYLE_OVERRIDE=GTK+
'''Save''' the file & '''reboot'''.


<br clear="all"/>


=Results=
<!--T:23-->
Logout and login again to make the change effective
</translate>}}


After saving the file & rebooting, I then, with trepidation, opened the Qt 5.5 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.
{{SectionTemplate|
<translate><!--T:24--> [[File:Chmsee-icon.png|left|36px]]</translate>
<translate><!--T:15--> See Also</translate>|
<translate>
<!--T:25-->
* [https://wiki.archlinux.org/index.php/Uniform_Look_for_Qt_and_GTK_Applications Arch Wiki]
* Matching [https://archived.forum.manjaro.org/t/wiki-set-all-qt-apps-to-use-your-gtk-theme-font-settings/17654 Forum Topic]}}
</translate>


 
[[Category:Contents Page{{#translation:}}]]
 
[[File:PkgBrowser.GTK+.png|thumb|left|375px]]
 
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.
 
<br clear="all"/>
 
=Support=
 
Following is a link to this page's forum counterpart where you
can post any related feedback: [coming soon]
 
<br clear="all"/>
[[Category:Contents Page]]

Latest revision as of 18:10, 6 April 2022

Other languages:
English • ‎Türkçe • ‎español • ‎русский • ‎فارسی

Overview

When using a Desktop Environment or Window Manager that doesn't allow for the settings of QT themes, you can set QT to use your GTK themes instead.

Using qt5ct

note
In some Manjaro editions, this is already done for you by default


Install qt5ct using your favorite package manager or the command:

user $ pamac install qt5ct COPY TO CLIPBOARD


Set environment variables in ~/.profile by adding or updating the following lines:

~/.profile
export QT_QPA_PLATFORMTHEME="qt5ct"


Run the application QT5 Configuration Manager from the menu or run the command qt5ct.


Logout and login again to make the change effective

Chmsee-icon.png
See Also

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