Fixing BR #308 - make column handle fade smoother
[quassel.git] / src / qtui / chatscene.cpp
index 1194e82..0a53dfe 100644 (file)
@@ -582,6 +582,14 @@ void ChatScene::updateSceneRect(const QRectF &rect) {
   update();
 }
 
+bool ChatScene::event(QEvent *e) {
+  if(e->type() == QEvent::ApplicationPaletteChange) {
+    _firstColHandle->setColor(QApplication::palette().windowText().color());
+    _secondColHandle->setColor(QApplication::palette().windowText().color());
+  }
+  return QGraphicsScene::event(e);
+}
+
 void ChatScene::loadWebPreview(ChatItem *parentItem, const QString &url, const QRectF &urlRect) {
 #ifndef HAVE_WEBKIT
   Q_UNUSED(parentItem)