From e4cd310303a304b78ae0db64693799f6ea4c68bd Mon Sep 17 00:00:00 2001 From: 10r3n20 Date: Tue, 16 Nov 2021 11:37:52 +0100 Subject: [PATCH] added hover state to inactive tabs --- plugins/Marketplace/resources/qml/PackageTypeTab.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Marketplace/resources/qml/PackageTypeTab.qml b/plugins/Marketplace/resources/qml/PackageTypeTab.qml index 6f54932c07..4d82333b02 100644 --- a/plugins/Marketplace/resources/qml/PackageTypeTab.qml +++ b/plugins/Marketplace/resources/qml/PackageTypeTab.qml @@ -9,11 +9,15 @@ TabButton { property string pageTitle padding: UM.Theme.getSize("narrow_margin").width + hoverEnabled: true + property color inactiveBackgroundColor : hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("detail_background") + property color activeBackgroundColor : UM.Theme.getColor("main_background") + background: Rectangle { anchors.fill: parent - color: parent.checked ? UM.Theme.getColor("main_background") : UM.Theme.getColor("detail_background") + color: parent.checked ? activeBackgroundColor : inactiveBackgroundColor border.color: UM.Theme.getColor("detail_background") border.width: UM.Theme.getSize("thick_lining").width }