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

List:       kde-commits
Subject:    KDE/kdepim/kontact/plugins/summary
From:       Allen Winter <winter () kde ! org>
Date:       2009-07-24 15:26:04
Message-ID: 1248449164.855237.10093.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1001946 by winterz:

Make the Kontact summary view uses view text color instead of window text color.
Thanks for the patch Peter.

also be nicer to the rightToLeft folks with the stylesheet.

BUG: 201218
MERGE: 4.3,e4


 M  +20 -1     summaryview_part.cpp  


--- trunk/KDE/kdepim/kontact/plugins/summary/summaryview_part.cpp #1001945:1001946
@@ -388,12 +388,31 @@
 
 void SummaryViewPart::slotAdjustPalette()
 {
+  if ( !QApplication::isRightToLeft() ) {
     mMainWidget->setStyleSheet(
       "#mMainWidget { "
       " background: palette(base);"
+      " color: palette(text);"
       " background-image: url(:/summaryview/kontact_bg.png);"
       " background-position: bottom right;"
-      " background-repeat: no-repeat; }" );
+      " background-repeat: no-repeat; }"
+      "QLabel { "
+      " color: palette(text); }"
+      "KUrlLabel { "
+      " color: palette(link); }" );
+  } else {
+    mMainWidget->setStyleSheet(
+      "#mMainWidget { "
+      " background: palette(base);"
+      " color: palette(text);"
+      " background-image: url(:/summaryview/kontact_bg.png);"
+      " background-position: bottom left;"
+      " background-repeat: no-repeat; }"
+      "QLabel { "
+      " color: palette(text); }"
+      "KUrlLabel { "
+      " color: palette(link); }" );
+  }
 }
 
 void SummaryViewPart::setDate( const QDate &newDate )
[prev in list] [next in list] [prev in thread] [next in thread] 

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