# How to make Mathematica use system GTK style under Linux?

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

• 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. Jun 4 '15 at 10:33

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.

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

• 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. May 3 '17 at 0:15