X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=ce39d2d8c696b51ae30e1b141a1ecd203091ecc2;hp=3ab08f414cb75d71fdc7a39378e1cc7f38f94196;hb=120861b909702039da9993278d8319dad14fd292;hpb=9fd12737c55a0119801c90c399c926b35ffee708 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 3ab08f41..ce39d2d8 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -37,6 +37,8 @@ UiStyle::UiStyle(QObject *parent) : QObject(parent) { Q_ASSERT(QVariant::nameToType("UiStyle::FormatList") != QVariant::Invalid); } + _uiStylePalette = QVector(NumRoles, QBrush()); + // Now initialize the mapping between FormatCodes and FormatTypes... _formatCodes["%O"] = Base; _formatCodes["%B"] = Bold; @@ -81,7 +83,7 @@ void UiStyle::loadStyleSheet() { QssParser parser; parser.processStyleSheet(styleSheet); QApplication::setPalette(parser.palette()); - _markerLineBrush = parser.markerLineBrush(); + _uiStylePalette = parser.uiStylePalette(); QTextCharFormat baseFmt = parser.formats().value(Base); foreach(quint64 fmtType, parser.formats().keys()) {