mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Update SvgImageType icon color when the item is disabled
This commit is contained in:
@@ -8,11 +8,12 @@ BasicButtonType {
|
|||||||
|
|
||||||
background: Item {}
|
background: Item {}
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
anchors.fill: parent
|
// anchors.fill: parent
|
||||||
SvgImageType {
|
SvgImageType {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
svg.source: root.icon.source
|
svg.source: root.icon.source
|
||||||
|
enabled: root.enabled
|
||||||
color: "#100A44"
|
color: "#100A44"
|
||||||
width: 25
|
width: 25
|
||||||
height: 25
|
height: 25
|
||||||
|
|||||||
@@ -18,6 +18,6 @@ Item {
|
|||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
anchors.fill: image
|
anchors.fill: image
|
||||||
source: image
|
source: image
|
||||||
color: root.color
|
color: root.enabled ? root.color : "grey"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user