mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:49:00 +08:00
Make toggle button labels clickable
This commit is contained in:
parent
f0d4ea43c2
commit
7db0f0ebb7
@ -417,6 +417,20 @@ Rectangle
|
||||
text: ""
|
||||
color: UM.Theme.getColor("toggle_active_text")
|
||||
font: UM.Theme.getFont("default")
|
||||
|
||||
MouseArea
|
||||
{
|
||||
anchors.fill: parent
|
||||
onClicked:
|
||||
{
|
||||
modeToggleSwitch.checked = false;
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
clicked.connect(modeToggleSwitch.clicked)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Switch
|
||||
@ -454,6 +468,20 @@ Rectangle
|
||||
text: ""
|
||||
color: UM.Theme.getColor("toggle_active_text")
|
||||
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