From c38e47b7267ee4f6b856032c63dd0b76bada4091 Mon Sep 17 00:00:00 2001 From: Hamza ARBI Date: Sun, 30 Oct 2022 02:06:51 +0100 Subject: [PATCH] Update SvgImageType icon color when the item is disabled --- client/ui/qml/Controls/SettingButtonType.qml | 3 ++- client/ui/qml/Controls/SvgImageType.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ui/qml/Controls/SettingButtonType.qml b/client/ui/qml/Controls/SettingButtonType.qml index 65148c6d..b2596549 100644 --- a/client/ui/qml/Controls/SettingButtonType.qml +++ b/client/ui/qml/Controls/SettingButtonType.qml @@ -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 diff --git a/client/ui/qml/Controls/SvgImageType.qml b/client/ui/qml/Controls/SvgImageType.qml index 2022ee32..aee928ba 100644 --- a/client/ui/qml/Controls/SvgImageType.qml +++ b/client/ui/qml/Controls/SvgImageType.qml @@ -18,6 +18,6 @@ Item { ColorOverlay { anchors.fill: image source: image - color: root.color + color: root.enabled ? root.color : "grey" } }