[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/gwenview/app
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2010-08-23 22:23:30
Message-ID: 20100823222330.09D86AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1167184 by gateau:

Define color: just in case

@Thomas: Do you think this is enough? buttons are supposed to use the button
background so they should not be affected.

CCBUG:213709

 M  +6 -3      savebar.cpp  


--- trunk/KDE/kdegraphics/gwenview/app/savebar.cpp #1167183:1167184
@@ -121,20 +121,23 @@
 	}
 
 	void applyNormalStyleSheet() {
-		QColor color = QToolTip::palette().base().color();
-		QColor borderColor = PaintUtils::adjustedHsv(color, 0, 150, 0);
+		QColor bgColor = QToolTip::palette().base().color();
+		QColor borderColor = PaintUtils::adjustedHsv(bgColor, 0, 150, 0);
+		QColor fgColor = QToolTip::palette().text().color();
 
 		QString css =
 			"#saveBarWidget {"
 			"	background-color: %1;"
 			"	border-top: 1px solid %2;"
 			"	border-bottom: 1px solid %2;"
+			"	color: %3;"
 			"}"
 			;
 
 		css = css
-			.arg(color.name())
+			.arg(bgColor.name())
 			.arg(borderColor.name())
+			.arg(fgColor.name())
 			;
 		mSaveBarWidget->setStyleSheet(css);
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic