mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:06:13 +08:00
added hover state to inactive tabs
This commit is contained in:
parent
74193ffff9
commit
e4cd310303
@ -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…
x
Reference in New Issue
Block a user