mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:19:03 +08:00
Make toggle button labels clickable
This commit is contained in:
parent
f0d4ea43c2
commit
7db0f0ebb7
@ -417,6 +417,20 @@ Rectangle
|
|||||||
text: ""
|
text: ""
|
||||||
color: UM.Theme.getColor("toggle_active_text")
|
color: UM.Theme.getColor("toggle_active_text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
modeToggleSwitch.checked = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
clicked.connect(modeToggleSwitch.clicked)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Switch
|
Switch
|
||||||
@ -454,6 +468,20 @@ Rectangle
|
|||||||
text: ""
|
text: ""
|
||||||
color: UM.Theme.getColor("toggle_active_text")
|
color: UM.Theme.getColor("toggle_active_text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
modeToggleSwitch.checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
clicked.connect(modeToggleSwitch.clicked)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user