Update SvgImageType icon color when the item is disabled
This commit is contained in:
parent
e6a4d79b86
commit
c38e47b726
2 changed files with 3 additions and 2 deletions
|
@ -8,11 +8,12 @@ BasicButtonType {
|
|||
|
||||
background: Item {}
|
||||
contentItem: Item {
|
||||
anchors.fill: parent
|
||||
// anchors.fill: parent
|
||||
SvgImageType {
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
svg.source: root.icon.source
|
||||
enabled: root.enabled
|
||||
color: "#100A44"
|
||||
width: 25
|
||||
height: 25
|
||||
|
|
|
@ -18,6 +18,6 @@ Item {
|
|||
ColorOverlay {
|
||||
anchors.fill: image
|
||||
source: image
|
||||
color: root.color
|
||||
color: root.enabled ? root.color : "grey"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue