highlightcolor can now be configured
authorAlexander von Renteln <phon@quassel-irc.org>
Sat, 12 Apr 2008 00:07:39 +0000 (00:07 +0000)
committerAlexander von Renteln <phon@quassel-irc.org>
Sat, 12 Apr 2008 00:07:39 +0000 (00:07 +0000)
src/qtui/chatline-old.cpp
src/qtui/settingspages/colorsettingspage.ui
version.inc

index 0a3cc20..c1cd7d2 100644 (file)
@@ -23,6 +23,8 @@
 #include "network.h"
 #include "qtui.h"
 
+#include "qtuisettings.h"
+
 //! Construct a ChatLineOld object from a message.
 /**
  * \param m   The message to be layouted and rendered
@@ -316,8 +318,10 @@ void ChatLineOld::draw(QPainter *p, const QPointF &pos) {
     p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
   } else {
     if(isHighlight) {
+      QtUiSettings s("QtUi/Colors");
+      QColor highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value<QColor>();
       p->setPen(Qt::NoPen);
-      p->setBrush(QColor("lightcoral") /*pal.brush(QPalette::AlternateBase) */);
+      p->setBrush(highlightColor /*pal.brush(QPalette::AlternateBase) */);
       p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height())));
     }
     if(selectionMode == Partial) {
index e617127..ab646f2 100644 (file)
            <item row="5" column="2" >
             <widget class="ColorButton" name="highlightColor" >
              <property name="enabled" >
-              <bool>false</bool>
+              <bool>true</bool>
              </property>
              <property name="text" >
               <string/>
index 7758224..c745387 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-beta1-pre";
   quasselDate = "2008-04-11";
-  quasselBuild = 725;
+  quasselBuild = 727;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;