Message info
 
To:kde-commits@kde.org From:Daniele E. Domenichelli Subject:[ktp-accounts-kcm] src: Fix colours for some themes Date:Fri, 30 Mar 2012 17:58:08 +0200 (CEST)
 

Git commit 562829e6b55a70c8fa7b25efc49b4261c6c278e2 by Daniele E. Domenichelli.
Committed on 28/02/2012 at 00:31.
Pushed by ddomenichelli into branch 'master'.

Fix colours for some themes

M +4 -1 src/accounts-list-delegate.cpp

http://commits.kde.org/telepathy-accounts-kcm/562829e6b55a70c8fa7b25efc49b4261c6c278e2

diff --git a/src/accounts-list-delegate.cpp b/src/accounts-list-delegate.cpp
index 82d0f3e..43d4b12 100644
--- a/src/accounts-list-delegate.cpp
+++ b/src/accounts-list-delegate.cpp
@@ -197,6 +197,7 @@ void AccountsListDelegate::updateItemWidgets(const QList<QWidget *> widgets, con
QFont displayNameButtonFont = option.font;
QPalette displayNameButtonPalette = option.palette;
if (isEnabled) {
+ displayNameButtonPalette.setColor(QPalette::WindowText, displayNameButtonPalette.color(QPalette::Normal, QPalette::Text));
displayNameButtonFont.setBold(true);
} else {
displayNameButtonFont.setItalic(true);
@@ -227,7 +228,9 @@ void AccountsListDelegate::updateItemWidgets(const QList<QWidget *> widgets, con
// connectionErrorLabel
QFont connectionErrorLabelFont = option.font;
QPalette connectionErrorLabelPalette = option.palette;
- if (!isEnabled) {
+ if (isEnabled) {
+ connectionErrorLabelPalette.setColor(QPalette::WindowText, connectionErrorLabelPalette.color(QPalette::Normal, QPalette::Text));
+ } else {
connectionErrorLabelFont.setItalic(true);
connectionErrorLabelPalette.setColor(QPalette::Text, connectionErrorLabelPalette.color(QPalette::Disabled, QPalette::Text));
}