mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 23:33:14 +08:00
Hide icons if they overlap monitor button
CURA-4527
This commit is contained in:
parent
3d2868c336
commit
ce0510cee3
@ -225,7 +225,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: viewOrientationControl
|
id: viewOrientationControl
|
||||||
height: 30
|
height: 30
|
||||||
width: 155
|
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
@ -242,7 +242,9 @@ Rectangle
|
|||||||
anchors.verticalCenter: viewOrientationControl.verticalCenter
|
anchors.verticalCenter: viewOrientationControl.verticalCenter
|
||||||
onClicked:{
|
onClicked:{
|
||||||
UM.Controller.rotateView("3d", 0);
|
UM.Controller.rotateView("3d", 0);
|
||||||
|
console.log("WIDTH : " + base.width)
|
||||||
}
|
}
|
||||||
|
visible: base.width > 1100
|
||||||
}
|
}
|
||||||
|
|
||||||
// #2 Front view
|
// #2 Front view
|
||||||
@ -254,6 +256,7 @@ Rectangle
|
|||||||
onClicked:{
|
onClicked:{
|
||||||
UM.Controller.rotateView("home", 0);
|
UM.Controller.rotateView("home", 0);
|
||||||
}
|
}
|
||||||
|
visible: base.width > 1130
|
||||||
}
|
}
|
||||||
|
|
||||||
// #3 Top view
|
// #3 Top view
|
||||||
@ -265,6 +268,7 @@ Rectangle
|
|||||||
onClicked:{
|
onClicked:{
|
||||||
UM.Controller.rotateView("y", 90);
|
UM.Controller.rotateView("y", 90);
|
||||||
}
|
}
|
||||||
|
visible: base.width > 1160
|
||||||
}
|
}
|
||||||
|
|
||||||
// #4 Left view
|
// #4 Left view
|
||||||
@ -276,6 +280,7 @@ Rectangle
|
|||||||
onClicked:{
|
onClicked:{
|
||||||
UM.Controller.rotateView("x", 90);
|
UM.Controller.rotateView("x", 90);
|
||||||
}
|
}
|
||||||
|
visible: base.width > 1190
|
||||||
}
|
}
|
||||||
|
|
||||||
// #5 Left view
|
// #5 Left view
|
||||||
@ -287,6 +292,7 @@ Rectangle
|
|||||||
onClicked:{
|
onClicked:{
|
||||||
UM.Controller.rotateView("x", -90);
|
UM.Controller.rotateView("x", -90);
|
||||||
}
|
}
|
||||||
|
visible: base.width > 1210
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user