Under Linux, Mathematica uses preinstalled QT themes, but I'm sure that it's possible to make it use system GTK style. How?
-
3$\begingroup$ Just don't do it. Mathematica works fine regardless of what it looks like. This has been asked before and it used to be possible by removing the Qt libraries that ship with Mathematica and replacing them with symlinks to your system's Qt (of the same major version), if I remember right. But doing this can cause problems. So don't do it. $\endgroup$– SzabolcsJun 4, 2015 at 10:33
2 Answers
Solution found! Install qt4-qtconfig
. Launch it, select GTK+ in the Select GUI Style dropdown menu, and then save your updated configuration from the File menu in the menubar.
-
$\begingroup$ Note that in some systems, the package is
qtconfig-qt4
. $\endgroup$ Sep 29, 2015 at 9:13 -
$\begingroup$ @AlfredoHernández Did this work without having to replace the Qt libraries that Mathematica ships with? $\endgroup$– SzabolcsSep 29, 2015 at 9:52
-
$\begingroup$ @Szabolcs well, not really; it doesn't use native GTK+, but at least it uses your theme colours, which is a bit nicer than the boring brown/grey and does indeed feel more native. Here a comparison: cl.ly/image/0g0m2N0G062d $\endgroup$ Sep 29, 2015 at 10:04
Preferences -> Advanced -> Open Options Inspector.
In the Options Inspector window:
Global Options -> PrivateFrontEndOptions
In the right pane: "XDefaultApplicationStyle": by default, it is "plastique". Change it to "windows", for example, or other styles defined in qt4-qtconfig. You can also change the font "Bitstream Vera Sans-10" to "Bitstream Vera Sans-8", for example, to reduce the font size a little.
-
$\begingroup$ Nice. Managed to change the font, however setting
XDefaultApplicationStyle
toGTK+
(how it is displayed on qt4-qtconfig) orgtk+
doesn't seem to have any effect. $\endgroup$ May 3, 2017 at 0:15