From 15884a66e8e9f0151fe8f0e05d9f4d93fdb716ef Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Mon, 20 Sep 2021 15:58:53 +0200 Subject: [PATCH] Warp and elide ApplicationButton display name To make sure that it properly fits in the available space. CURA-8421 --- .../qml/ApplicationSwitcher/ApplicationButton.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationButton.qml b/resources/qml/ApplicationSwitcher/ApplicationButton.qml index 564fff747e..bec806eb1c 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationButton.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationButton.qml @@ -60,8 +60,10 @@ Button right: parent.right rightMargin: - Math.round(width * 5 / 6) } + Rectangle { + id: externalLinkIndicatorBackground anchors.centerIn: parent width: UM.Theme.getSize("small_button_icon").width height: width @@ -71,14 +73,12 @@ Button UM.RecolorImage { - id: externalLinkIcon + id: externalLinkIndicatorIcon anchors.centerIn: parent width: UM.Theme.getSize("printer_status_icon").width height: width - color: UM.Theme.getColor("monitor_icon_primary") - source: UM.Theme.getIcon("LinkExternal") } } @@ -87,8 +87,14 @@ Button Label { id: applicationDisplayName + anchors.horizontalCenter: parent.horizontalCenter + width: base.width - UM.Theme.getSize("default_margin").width + horizontalAlignment: Text.AlignHCenter + maximumLineCount: 2 + wrapMode: Text.Wrap + elide: Text.ElideRight } } } \ No newline at end of file