From 73289b95207a72402adf03a15aa75b85d432da2b Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
Date: Tue, 2 Jun 2009 17:58:17 +0200
Subject: [PATCH] Fixes:    Fix highcontrast themes Details: We need to force
 the background and foreground colors to make dark color themes work with the
 style sheet. I also changed the selected tab-button not to be sunken and the
 menu highlight to be slightly lighter.

---
 src/plugins/coreplugin/stylehelper.cpp |  2 +-
 src/plugins/coreplugin/welcomemode.ui  | 18 ++++++++++++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/plugins/coreplugin/stylehelper.cpp b/src/plugins/coreplugin/stylehelper.cpp
index 0e0daa09c85..b46f751e009 100644
--- a/src/plugins/coreplugin/stylehelper.cpp
+++ b/src/plugins/coreplugin/stylehelper.cpp
@@ -214,7 +214,7 @@ void StyleHelper::menuGradient(QPainter *painter, const QRect &spanRect, const Q
     }
 
     QLinearGradient grad(spanRect.topLeft(), spanRect.bottomLeft());
-    QColor menuColor = mergedColors(StyleHelper::baseColor(), QColor(240, 240, 240), 25);
+    QColor menuColor = mergedColors(StyleHelper::baseColor(), QColor(244, 244, 244), 25);
     grad.setColorAt(0, menuColor.lighter(112));
     grad.setColorAt(1, menuColor);
     p->fillRect(rect, grad);
diff --git a/src/plugins/coreplugin/welcomemode.ui b/src/plugins/coreplugin/welcomemode.ui
index d12e5524f2a..3dbe9e978e8 100644
--- a/src/plugins/coreplugin/welcomemode.ui
+++ b/src/plugins/coreplugin/welcomemode.ui
@@ -21,9 +21,16 @@ QToolButton, QPushButton, QComboBox {
     padding: 0px 6px;
     font-size: 12px;
     font-family: lucida sans, dejavu sans, sans serif;
+}
+
+*{
     color: black;
 }
 
+ QComboBox QAbstractItemView {
+    background-color:white;
+}
+
  QComboBox::down-arrow {
      image: url(:/core/images/welcomemode/combobox_arrow.png);
  }
@@ -41,7 +48,7 @@ QToolButton:hover, QPushButton:hover, QComboBox:hover {
     border-image: url(:/core/images/welcomemode/btn_26_hover.png) 4;
 }
 
-QToolButton:disabled, QPushButton:disabled {
+QToolButton:disabled, QPushButton:disabled, QComboBox::disabled {
 	color:gray;
 }
 
@@ -187,8 +194,8 @@ QToolButton:pressed, QPushButton:pressed{
 	stop: 0.401 #636363,
 	stop: 1 #4a4a4a);
 	border: 0px solid black;
-	border-top: 1px solid black;
-	border-bottom: 1px solid black;
+	border-top: 1px solid #303030;
+	border-bottom: 1px solid #202020;
 	color: white;
 	height:20px;
 }
@@ -202,7 +209,7 @@ QToolButton:hover {
 	stop: 1 #555555);
 }
 
-QToolButton:checked {
+QToolButton:checked, QToolButton:checked:pressed {
 	border-image:none;
 	background-color: qlineargradient(x1: 0, y1: 0, x2: 0.0, y2: 1.0,
 	stop: 0 #ffffff,
@@ -885,6 +892,9 @@ QToolButton:pressed {
                   <property name="text">
                    <string>Create New Project...</string>
                   </property>
+                  <property name="flat">
+                   <bool>true</bool>
+                  </property>
                  </widget>
                 </item>
                 <item row="4" column="0">
-- 
GitLab