From 34c7aa940ca369389133c82d096a84f7a80fa6d9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 31 May 2013 12:40:52 +0900 Subject: Hack to force plastique style on Linux I'd much rather be able to check if it is using the Gnome style and only then force plastique but I haven't been able to figure out how to do that. Signed-off-by: Dirk Hohndel --- qt-gui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qt-gui.cpp b/qt-gui.cpp index 1d9f9cad3..31b6c1b0b 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -84,6 +84,15 @@ const char *getSetting(QSettings &s, QString name) void init_ui(int *argcp, char ***argvp) { QVariant v; +#ifdef __linux__ + // for people running under Gnome the default style is + // really ugly; this seems like a bad hack, but it makes + // things look somewhat better + // I'd much rather be able to check if it is using the Gnome + // style and only then force plastique but I haven't been + // able to figure out how to do that + QApplication::setStyle("plastique"); +#endif application = new QApplication(*argcp, *argvp); #if QT_VERSION < 0x050000 -- cgit v1.2.3-70-g09d2