mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
added hover state to inactive tabs
This commit is contained in:
parent
74193ffff9
commit
e4cd310303
1 changed files with 5 additions and 1 deletions
|
|
@ -9,11 +9,15 @@ TabButton
|
||||||
{
|
{
|
||||||
property string pageTitle
|
property string pageTitle
|
||||||
padding: UM.Theme.getSize("narrow_margin").width
|
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
|
background: Rectangle
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
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.color: UM.Theme.getColor("detail_background")
|
||||||
border.width: UM.Theme.getSize("thick_lining").width
|
border.width: UM.Theme.getSize("thick_lining").width
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue