diff options
author | Konstantinos Karmas <konskarm@gmail.com> | 2021-07-28 19:17:54 +0300 |
---|---|---|
committer | Konstantinos Karmas <konskarm@gmail.com> | 2021-07-28 19:17:54 +0300 |
commit | 83fe65b8ebb5924fcdeafac855efc3e7b820fca9 (patch) | |
tree | 546e7210897d2256e5e0eca11b98c5dceecd7251 /resources/qml/ActionPanel/SliceProcessWidget.qml | |
parent | d41d68e6fab8f5af12fd8cb77af497d2487dd558 (diff) |
Use the StatusIcon qml component for the warning icons
CURA-8349
Diffstat (limited to 'resources/qml/ActionPanel/SliceProcessWidget.qml')
-rw-r--r-- | resources/qml/ActionPanel/SliceProcessWidget.qml | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/resources/qml/ActionPanel/SliceProcessWidget.qml b/resources/qml/ActionPanel/SliceProcessWidget.qml index 92b81f43cf..99d78537c3 100644 --- a/resources/qml/ActionPanel/SliceProcessWidget.qml +++ b/resources/qml/ActionPanel/SliceProcessWidget.qml @@ -6,7 +6,7 @@ import QtQuick.Controls 2.1 import QtQuick.Layouts 1.3 import QtQuick.Controls 1.4 as Controls1 -import UM 1.3 as UM +import UM 1.4 as UM import Cura 1.0 as Cura @@ -63,38 +63,19 @@ Column width: parent.width visible: widget.backendState == UM.Backend.Error - height: icon.height - Item + height: warningIcon.height + UM.StatusIcon { - id: icon + id: warningIcon anchors.verticalCenter: parent.verticalCenter width: visible ? UM.Theme.getSize("section_icon").width : 0 height: width - UM.RecolorImage - { - id: warningIconBackground - height: parent.height - width: parent.width - sourceSize.width: width - sourceSize.height: height - source: UM.Theme.getIcon("CircleSolid", "low") - color: UM.Theme.getColor("warning") - } - UM.RecolorImage - { - id: warningIcon - height: parent.height - width: parent.width - sourceSize.width: width - sourceSize.height: height - source: UM.Theme.getIcon("Warning", "low") - color: UM.Theme.getColor("message_warning_icon") - } + status: UM.StatusIcon.Status.WARNING } Label { id: label - anchors.left: icon.right + anchors.left: warningIcon.right anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: UM.Theme.getSize("default_margin").width |