mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06: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
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue