Add --qss parameter to load a custom stylesheet
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 24 Jun 2009 07:44:38 +0000 (09:44 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
commit04c923c596fbde976b23979b92b0636635f97951
tree42be923d14181925705956e187e67d3a68c7a8c3
parentc870a4980ba79f784781e75b89ec537f1ec343ac
Add --qss parameter to load a custom stylesheet

Because there doesn't seem to be sane way to hijack Qt's -stylesheet parameter,
we introduce our own. This also allows us to add incompatible extensions to QSS,
because we can remove them before handing over the pre-parsed stylesheet to QApplication.
Note that -stylesheet is now ignored.

The style engine now loads $datadir/default.qss, $configdir/custom.qss and --qss "file.qss"
in that order. Later block declarations override earlier ones, if they are identical.
That way, you can override parts of the system-installed default.qss in your own configdir or
on the command line.
src/common/main.cpp
src/uisupport/qssparser.cpp
src/uisupport/qssparser.h
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h