mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:49:04 +08:00
Move the popup so that the arrow isn't drawn exactly on the corner
CURA-8421
This commit is contained in:
parent
e2d19668e4
commit
ab77efd9c4
@ -60,7 +60,9 @@ Item
|
|||||||
id: applicationSwitcherPopup
|
id: applicationSwitcherPopup
|
||||||
|
|
||||||
y: parent.height + UM.Theme.getSize("default_arrow").height
|
y: parent.height + UM.Theme.getSize("default_arrow").height
|
||||||
x: parent.width - width
|
|
||||||
|
// Move the x position by the default margin so that the arrow isn't drawn exactly on the corner
|
||||||
|
x: parent.width - width + UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||||
|
|
||||||
@ -122,7 +124,8 @@ Item
|
|||||||
borderColor: UM.Theme.getColor("lining")
|
borderColor: UM.Theme.getColor("lining")
|
||||||
borderWidth: UM.Theme.getSize("default_lining").width
|
borderWidth: UM.Theme.getSize("default_lining").width
|
||||||
|
|
||||||
target: Qt.point(width - (applicationSwitcherButton.width / 2), -10)
|
// Move the target by the default margin so that the arrow isn't drawn exactly on the corner
|
||||||
|
target: Qt.point(width - UM.Theme.getSize("default_margin").width - (applicationSwitcherButton.width / 2), -10)
|
||||||
|
|
||||||
arrowSize: UM.Theme.getSize("default_arrow").width
|
arrowSize: UM.Theme.getSize("default_arrow").width
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user