From b2065f58a7167dba6611ba94e0045176d605a681 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Fri, 8 Jan 2010 17:17:02 +0100 Subject: [PATCH] Qml Designer: fix styling of ComBox popup --- .../propertyeditor/Qt/propertyEditor.css | 12 ++++++++++++ .../components/resources/stylesheet.css | 15 ++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/propertyEditor.css b/share/qtcreator/qmldesigner/propertyeditor/Qt/propertyEditor.css index 31af443f4c6..b6cca92a07a 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/propertyEditor.css +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/propertyEditor.css @@ -388,6 +388,7 @@ QMenu { padding: 2px; color: #404040; border-radius: 4px; + padding: 2px 25px 2px 20px; } QMenu::separator { height: 1px; @@ -395,3 +396,14 @@ QMenu::separator { margin-left: 5px; margin-right: 5px; } + + QComboBox QAbstractItemView { + show-decoration-selected: 1; /* make the selection span the entire width of the view */ + background-color: #494949; /* sets background of the menu */ + border: 1px solid black; + margin: 0px; /* some spacing around the menu */ + color: #cacaca; + selection-background-color: #d2d2d2; + selection-color: #404040; + } + diff --git a/src/plugins/qmldesigner/components/resources/stylesheet.css b/src/plugins/qmldesigner/components/resources/stylesheet.css index b660897c29a..b65911e6dc8 100644 --- a/src/plugins/qmldesigner/components/resources/stylesheet.css +++ b/src/plugins/qmldesigner/components/resources/stylesheet.css @@ -63,10 +63,15 @@ QLineEdit QListView::item:selected { color: white; } - -QComboBox QAbstractItemView { - color: black; - border: 2px solid darkgray; - selection-background-color: lightgray; + + QComboBox QAbstractItemView { + show-decoration-selected: 1; /* make the selection span the entire width of the view */ + background-color: #494949; /* sets background of the menu */ + border: 1px solid black; + margin: 0px; /* some spacing around the menu */ + color: #cacaca; + selection-background-color: #d2d2d2; + selection-color: #404040; } + \ No newline at end of file -- GitLab