From ce4d691570ea43c14b28acf06e9edc3fedb5b3db Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Wed, 25 Oct 2023 16:00:25 +0200 Subject: [PATCH] Refs #19533: Improve disable view of chart layout button Signed-off-by: JesusPoderoso --- qml/TabLayout.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qml/TabLayout.qml b/qml/TabLayout.qml index baa78f31..a95f64a7 100644 --- a/qml/TabLayout.qml +++ b/qml/TabLayout.qml @@ -105,9 +105,10 @@ Item { id: chart_button width: 400; height: 400 background: Rectangle { - color: Theme.whiteSmoke + color: disable_chart_selection_ ? Theme.lightGrey : Theme.whiteSmoke border.width: 3 - border.color: chart_button.hovered ? Theme.eProsimaLightBlue : Theme.eProsimaDarkBlue + border.color: disable_chart_selection_ ? Theme.grey : + chart_button.hovered ? Theme.eProsimaLightBlue : Theme.eProsimaDarkBlue radius: 40 Image { @@ -127,7 +128,8 @@ Item { text: "Chart View" horizontalAlignment: Text.AlignHCenter font.pointSize: 20 - color: chart_button.hovered ? Theme.eProsimaLightBlue : Theme.eProsimaDarkBlue + color: disable_chart_selection_ ? Theme.grey : + chart_button.hovered ? Theme.eProsimaLightBlue : Theme.eProsimaDarkBlue } } anchors.verticalCenter: parent.verticalCenter