From ab77efd9c493e452222f2a33c9ee13de09b71f49 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Tue, 21 Sep 2021 15:07:04 +0200 Subject: [PATCH] Move the popup so that the arrow isn't drawn exactly on the corner CURA-8421 --- resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml b/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml index 45d00f3744..bbce9dbc9f 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml @@ -60,7 +60,9 @@ Item id: applicationSwitcherPopup 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 @@ -122,7 +124,8 @@ Item borderColor: UM.Theme.getColor("lining") 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 }