6
$\begingroup$

Under Linux, Mathematica uses preinstalled QT themes, but I'm sure that it's possible to make it use system GTK style. How?

$\endgroup$
1
  • 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$
    – Szabolcs
    Jun 4 '15 at 10:33
6
$\begingroup$

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.

$\endgroup$
3
  • $\begingroup$ Note that in some systems, the package is qtconfig-qt4. $\endgroup$ Sep 29 '15 at 9:13
  • $\begingroup$ @AlfredoHernández Did this work without having to replace the Qt libraries that Mathematica ships with? $\endgroup$
    – Szabolcs
    Sep 29 '15 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 '15 at 10:04
5
$\begingroup$

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.

$\endgroup$
1
  • $\begingroup$ Nice. Managed to change the font, however setting XDefaultApplicationStyle to GTK+ (how it is displayed on qt4-qtconfig) or gtk+ doesn't seem to have any effect. $\endgroup$ May 3 '17 at 0:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.