Commit e8f5964f authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ComboBox): change background color if ComboBox instance is disabled

parent 1fb8e3e7
...@@ -26,7 +26,10 @@ ComboBox { ...@@ -26,7 +26,10 @@ ComboBox {
width: ComboBoxStyle.background.border.width width: ComboBoxStyle.background.border.width
} }
color: ComboBoxStyle.background.color color: comboBox.enabled
? ComboBoxStyle.background.color.normal
: ComboBoxStyle.background.color.readOnly
radius: ComboBoxStyle.background.radius radius: ComboBoxStyle.background.radius
implicitHeight: ComboBoxStyle.background.height implicitHeight: ComboBoxStyle.background.height
......
...@@ -8,7 +8,6 @@ import Units 1.0 ...@@ -8,7 +8,6 @@ import Units 1.0
QtObject { QtObject {
property QtObject background: QtObject { property QtObject background: QtObject {
property color color: Colors.k
property int height: 36 property int height: 36
property int iconSize: 10 property int iconSize: 10
property int radius: 4 property int radius: 4
...@@ -18,6 +17,11 @@ QtObject { ...@@ -18,6 +17,11 @@ QtObject {
property color color: Colors.c property color color: Colors.c
property int width: 1 property int width: 1
} }
property QtObject color: QtObject {
property color normal: Colors.k
property color readOnly: Colors.e
}
} }
property QtObject contentItem: QtObject { property QtObject contentItem: QtObject {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment