Skip to content

Commit

Permalink
Refs #19533: Improve disable view of chart layout button
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Oct 25, 2023
1 parent 8a1de05 commit ce4d691
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qml/TabLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit ce4d691

Please sign in to comment.