Difference between revisions of "User FAQ"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
m (Wording fix)
m (→‎Gtk+2: Added crash warning)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
   
 
== Gtk+2 ==
 
== Gtk+2 ==
  +
  +
{{WarningBox|text=This theme engine is known to cause mysterious startup crashes in some applications (e.g. OpenOffice.org).}}
  +
   
 
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>.
 
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>.
Line 26: Line 29:
 
== Qt5 ==
 
== Qt5 ==
   
Install <tt>qt5c</tt> and the Gtk+ style plugin for Qt5 (probably in a package named something like <tt>qt5-styleplugins</tt>).
+
Install <tt>qt5ct</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:
 
Then, make Qt5 use <tt>qt5ct</tt> settings by means of the appropriate environment variable:

Latest revision as of 19:38, 6 February 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.



Q1 How do I make Gtk+/Qt apps use the Trinity style/colors/fonts?

Keywords: toolkit, consistency, look and feel

Gtk+2

Messagebox warning.png
Warning!
This theme engine is known to cause mysterious startup crashes in some applications (e.g. OpenOffice.org).


Install the Gtk+2 TQt engine (gtk-tqt-engine). Then configure it via Trinity Control Center > Appearance > GTK Styles and Fonts.

Gtk+3

Messagebox warning.png
Warning!
This will not work with Gtk+3 versions 3.20 and later.

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 qt5ct 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.