From 9ee467a84617cf20938f393f73355822b5190b47 Mon Sep 17 00:00:00 2001
From: Christiaan Janssen <christiaan.janssen@nokia.com>
Date: Wed, 17 Feb 2010 11:56:16 +0100
Subject: [PATCH] QmlDesigner.ItemLibrary: Adjusted grid line colors

---
 .../components/itemlibrary/qml/ItemView.qml   | 27 +++++++----
 .../itemlibrary/qml/ItemsViewStyle.qml        |  7 ++-
 .../components/itemlibrary/qml/Selector.qml   | 45 +++++++++++++++++++
 3 files changed, 69 insertions(+), 10 deletions(-)

diff --git a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemView.qml b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemView.qml
index 2b507cd97f1..378d39a2d55 100644
--- a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemView.qml
+++ b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemView.qml
@@ -14,33 +14,44 @@ Item {
     Rectangle {
         anchors.top: parent.top
         anchors.left: parent.left
-        anchors.right: parent.right
+        anchors.right: parent.right        
         height: 1
-        color: style.gridLineColor
+        color: style.gridLineLighter
     }
     Rectangle {
         anchors.bottom: parent.bottom
-        anchors.bottomMargin: -1
         anchors.left: parent.left
         anchors.right: parent.right
         height: 1
-        color: style.gridLineColor
+        color: style.gridLineDarker
     }
     Rectangle {
         anchors.top: parent.top
         anchors.bottom: parent.bottom
         anchors.left: parent.left
         width: 1
-        color: style.gridLineColor
+        color: style.gridLineLighter
     }
     Rectangle {
         anchors.top: parent.top
         anchors.bottom: parent.bottom
-        anchors.bottomMargin: -1
         anchors.right: parent.right
-        anchors.rightMargin: -1
         width: 1
-        color: style.gridLineColor
+        color: style.gridLineDarker
+    }
+    Rectangle {
+        anchors.top:parent.top
+        anchors.right:parent.right
+        width:1
+        height:1
+        color: style.backgroundColor
+    }
+    Rectangle {
+        anchors.bottom:parent.bottom
+        anchors.left:parent.left
+        width:1
+        height:1
+        color: style.backgroundColor
     }
 
     Image {
diff --git a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsViewStyle.qml b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsViewStyle.qml
index b31e8c58033..53017c56919 100644
--- a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsViewStyle.qml
+++ b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsViewStyle.qml
@@ -7,12 +7,15 @@ Item {
     property string scrollbarBackgroundColor: "#505050"
     property string scrollbarHandleColor: "#303030"
 
-    property string itemNameTextColor: "#c0c0c0"
+    property string itemNameTextColor: "#FFFFFF"
 
     property string sectionTitleTextColor: "#f0f0f0"
     property string sectionTitleBackgroundColor: "#909090"
 
-    property string gridLineColor: "#a0a0a0"
+//    property string gridLineLighter: "#787878"
+//    property string gridLineDarker: "#656565"
+    property string gridLineLighter: "#808080"
+    property string gridLineDarker: "#606060"
 
     property int sectionTitleHeight: 20
     property int sectionTitleSpacing: 2
diff --git a/src/plugins/qmldesigner/components/itemlibrary/qml/Selector.qml b/src/plugins/qmldesigner/components/itemlibrary/qml/Selector.qml
index ea06d1d9232..8e4dbae3a52 100644
--- a/src/plugins/qmldesigner/components/itemlibrary/qml/Selector.qml
+++ b/src/plugins/qmldesigner/components/itemlibrary/qml/Selector.qml
@@ -160,5 +160,50 @@ Item {
             }
         }
     }
+    Rectangle {
+        anchors.right:parent.right
+        anchors.left:parent.left
+        anchors.top:parent.top
+        anchors.topMargin:1
+        anchors.rightMargin:2
+        height:1
+        color:Qt.lighter(systemPalette.highlight)
+    }
+    Rectangle {
+        anchors.right:parent.right
+        anchors.left:parent.left
+        anchors.bottom:parent.bottom
+        anchors.bottomMargin:1
+        anchors.leftMargin:2
+        height:1
+        color:Qt.darker(systemPalette.highlight)
+    }
+    Rectangle {
+        anchors.left:parent.left
+        anchors.top:parent.top
+        anchors.bottom:parent.bottom
+        anchors.leftMargin:1
+        anchors.bottomMargin:2
+        width:1
+        //color:Qt.lighter(systemPalette.highlight)
+        gradient: Gradient {
+            GradientStop { position: 0.0; color: Qt.lighter(systemPalette.highlight) }
+            GradientStop { position: 1.0; color: systemPalette.highlight }
+        }
+    }
+    Rectangle {
+        anchors.right:parent.right
+        anchors.top:parent.top
+        anchors.bottom:parent.bottom
+        anchors.rightMargin:1
+        anchors.topMargin:2
+        width:1
+        //color:Qt.darker(systemPalette.highlight)
+        gradient: Gradient {
+            GradientStop { position: 0.0; color: systemPalette.highlight }
+            GradientStop { position: 1.0; color: Qt.darker(systemPalette.highlight) }
+        }
+    }
+
 }
 
-- 
GitLab