From dc181a3426051e94dca09981922ffd2131e35579 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 22 Sep 2021 09:33:13 +0200 Subject: [PATCH] Simplify QML of application button CURA-8421 --- .../ApplicationSwitcher/ApplicationButton.qml | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationButton.qml b/resources/qml/ApplicationSwitcher/ApplicationButton.qml index be8e6e4baf..f90103ab7e 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationButton.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationButton.qml @@ -51,10 +51,9 @@ Button width: UM.Theme.getSize("application_switcher_icon").width height: width - Item + UM.RecolorImage { - id: externalLinkIndicator - + id: externalLinkIndicatorIcon visible: base.isExternalLink anchors @@ -64,17 +63,10 @@ Button right: parent.right rightMargin: - Math.round(width * 5 / 6) } - - UM.RecolorImage - { - id: externalLinkIndicatorIcon - anchors.centerIn: parent - - width: UM.Theme.getSize("icon_indicator").width - height: width - color: UM.Theme.getColor("icon") - source: UM.Theme.getIcon("LinkExternal") - } + width: UM.Theme.getSize("icon_indicator").width + height: width + color: UM.Theme.getColor("icon") + source: UM.Theme.getIcon("LinkExternal") } }