Difference between revisions of "User FAQ"
(Page skeleton) |
(Added "How do I make Gtk+/Qt apps to use the Trinity style/colors/fonts?") |
||
Line 1: | Line 1: | ||
This page is meant to be a collection of answers to questions frequently coming up on the [http://mail.trinitydesktop.org/mailman3/postorius/lists/users.trinitydesktop.org/ users' mailing list].<noinclude> |
This page is meant to be a collection of answers to questions frequently coming up on the [http://mail.trinitydesktop.org/mailman3/postorius/lists/users.trinitydesktop.org/ users' mailing list].<noinclude> |
||
You can use the table of contents below or your browser's in-page search feature (usually <code>Ctrl+F</code>) to find relevant information. |
|||
__TOC__ |
__TOC__ |
||
= How do I make Gtk+/Qt apps to use the Trinity style/colors/fonts? = |
|||
Keywords: toolkit, consistency, look and feel |
|||
== Gtk+2 == |
|||
Install the Gtk+2 TQt engine (<tt>gtk-tqt-engine</tt>). Then configure it via <code>Trinity Control Center > Appearance > GTK Styles and Fonts</code>. |
|||
== Gtk+3 == |
|||
{{WarningBox | text = This will not work with Gtk+3 versions 3.20 and later.}} |
|||
Install the Gtk+3 TQt engine (<tt>gtk-tqt-engine</tt>). Then configure it in the same way as the Gtk+2 style. |
|||
== Qt4 == |
|||
Start Qt4's <tt>qtconfig</tt> (might be named <tt>qtconfig-qt4</tt> or similarly on your system). In the option <code>Select GUI Style</code> pick <code>GTK+</code> from the drop-down menu. |
|||
You will have to pick the appropriate fonts manually. |
|||
== Qt5 == |
|||
Install <tt>qt5c</tt> and the Gtk+ style plugin for Qt5 (probably in a package named something like <tt>qt5-styleplugins</tt>). |
|||
Then, make Qt5 use <tt>qt5ct</tt> settings by means of the appropriate environment variable: |
|||
<syntaxhighlight lang="shell-session"> |
|||
$ export QT_QPA_PLATFORMTHEME=qt5ct |
|||
</syntaxhighlight> |
|||
You can put this line in your <tt>.bashrc</tt> for the current user or in a script in the <tt>/etc/profile.d</tt> directory to set it system-wide. |
|||
Next, start <tt>qt5ct</tt> and select <code>Gtk2</code> as your Qt5 style. |
|||
Once again, you will have to pick the appropriate fonts manually. |
|||
</noinclude> |
</noinclude> |
Revision as of 09:52, 18 January 2022
This page is meant to be a collection of answers to questions frequently coming up on the users' mailing list.
You can use the table of contents below or your browser's in-page search feature (usually Ctrl+F
) to find relevant information.
How do I make Gtk+/Qt apps to use the Trinity style/colors/fonts?
Keywords: toolkit, consistency, look and feel
Gtk+2
Install the Gtk+2 TQt engine (gtk-tqt-engine). Then configure it via Trinity Control Center > Appearance > GTK Styles and Fonts
.
Gtk+3

Install the Gtk+3 TQt engine (gtk-tqt-engine). Then configure it in the same way as the Gtk+2 style.
Qt4
Start Qt4's qtconfig (might be named qtconfig-qt4 or similarly on your system). In the option Select GUI Style
pick GTK+
from the drop-down menu.
You will have to pick the appropriate fonts manually.
Qt5
Install qt5c and the Gtk+ style plugin for Qt5 (probably in a package named something like qt5-styleplugins).
Then, make Qt5 use qt5ct settings by means of the appropriate environment variable:
$ export QT_QPA_PLATFORMTHEME=qt5ct
You can put this line in your .bashrc for the current user or in a script in the /etc/profile.d directory to set it system-wide.
Next, start qt5ct and select Gtk2
as your Qt5 style.
Once again, you will have to pick the appropriate fonts manually.