mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 00:48:08 +00:00
fix(ComboBox): change background color if ComboBox instance is disabled
This commit is contained in:
parent
1fb8e3e7a7
commit
e8f5964fc3
2 changed files with 9 additions and 2 deletions
|
|
@ -26,7 +26,10 @@ ComboBox {
|
|||
width: ComboBoxStyle.background.border.width
|
||||
}
|
||||
|
||||
color: ComboBoxStyle.background.color
|
||||
color: comboBox.enabled
|
||||
? ComboBoxStyle.background.color.normal
|
||||
: ComboBoxStyle.background.color.readOnly
|
||||
|
||||
radius: ComboBoxStyle.background.radius
|
||||
|
||||
implicitHeight: ComboBoxStyle.background.height
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import Units 1.0
|
|||
|
||||
QtObject {
|
||||
property QtObject background: QtObject {
|
||||
property color color: Colors.k
|
||||
property int height: 36
|
||||
property int iconSize: 10
|
||||
property int radius: 4
|
||||
|
|
@ -18,6 +17,11 @@ QtObject {
|
|||
property color color: Colors.c
|
||||
property int width: 1
|
||||
}
|
||||
|
||||
property QtObject color: QtObject {
|
||||
property color normal: Colors.k
|
||||
property color readOnly: Colors.e
|
||||
}
|
||||
}
|
||||
|
||||
property QtObject contentItem: QtObject {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue