summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/resumewidget.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/resumewidget.cc b/client/resumewidget.cc
index 81e3f2c..bc97007 100644
--- a/client/resumewidget.cc
+++ b/client/resumewidget.cc
@@ -122,12 +122,20 @@ void ResumeWidget::setText(QString text, state_t state)
switch(state) {
case NEW:
- f = "<font style='color: #00F;'>" + f + "</font>";
+ {
+ QPalette palette;
+ palette.setBrush(foregroundRole(), QBrush(QColor(0, 0, 255)));
+ resume->setPalette(palette);
+ }
break;
case OLD:
break;
case DIRTY:
- f = "<font style='color: #F00;'>" + f + "</font>";
+ {
+ QPalette palette;
+ palette.setBrush(foregroundRole(), QBrush(QColor(255, 0, 0)));
+ resume->setPalette(palette);
+ }
break;
}