qss: Disable color codes in highlighted messages in the default QSS
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 24 Jul 2018 21:29:18 +0000 (23:29 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 28 Aug 2018 19:47:05 +0000 (21:47 +0200)
Colored text in highlighted messages may be hard to read due to
the changed background color. Disable overriding the highlight
text color in the default stylesheet.

Custom stylesheets can still enable color codes again by setting
the allow-foreground-override property to true.

data/stylesheets/default.qss

index 6027980..61ccd4c 100644 (file)
@@ -14,6 +14,7 @@ ChatLine {
 ChatLine[label="highlight"] {
   foreground: black;
   background: #ff8000;
 ChatLine[label="highlight"] {
   foreground: black;
   background: #ff8000;
+  allow-foreground-override: false;
   allow-background-override: false;
 }
 
   allow-background-override: false;
 }