From f932239b6a0ecdb8a227b02878e8ddc4ff4e4fbe Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 6 Dec 2021 16:52:38 +0100 Subject: [PATCH] Implement aesthetics of busy indicator Don't use the default spinner but use an image from our theme. A new image. And change the font size, colour and spacings a bit according to our designs. Contributes to issue CURA-8587. --- .../Marketplace/resources/qml/ManageButton.qml | 16 ++++++++++------ .../themes/cura-light/icons/default/Spinner.svg | 3 +++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 resources/themes/cura-light/icons/default/Spinner.svg diff --git a/plugins/Marketplace/resources/qml/ManageButton.qml b/plugins/Marketplace/resources/qml/ManageButton.qml index 5e1aad03e7..39be04d386 100644 --- a/plugins/Marketplace/resources/qml/ManageButton.qml +++ b/plugins/Marketplace/resources/qml/ManageButton.qml @@ -53,21 +53,24 @@ RowLayout height: UM.Theme.getSize("action_button").height width: childrenRect.width - BusyIndicator + UM.RecolorImage { id: busyIndicator visible: parent.visible width: height anchors.left: parent.left anchors.top: parent.top + anchors.topMargin: UM.Theme.getSize("narrow_margin").height anchors.bottom: parent.bottom + anchors.bottomMargin: anchors.topMargin - palette.dark: UM.Theme.getColor("text") + source: UM.Theme.getIcon("Spinner") + color: UM.Theme.getColor("primary") RotationAnimator { - target: busyIndicator.contentItem - running: busyIndicator.visible && busyIndicator.running + target: busyIndicator + running: busyIndicator.visible from: 0 to: 360 loops: Animation.Infinite @@ -79,10 +82,11 @@ RowLayout id: busyMessageText visible: parent.visible anchors.left: busyIndicator.right + anchors.leftMargin: UM.Theme.getSize("narrow_margin").width anchors.verticalCenter: parent.verticalCenter - font: UM.Theme.getFont("default") - color: UM.Theme.getColor("text") + font: UM.Theme.getFont("medium_bold") + color: UM.Theme.getColor("primary") } } diff --git a/resources/themes/cura-light/icons/default/Spinner.svg b/resources/themes/cura-light/icons/default/Spinner.svg new file mode 100644 index 0000000000..22a8f4dfd9 --- /dev/null +++ b/resources/themes/cura-light/icons/default/Spinner.svg @@ -0,0 +1,3 @@ + + +