mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-04 18:54:00 +08:00
28 lines
634 B
QML
28 lines
634 B
QML
// Copyright (c) 2017 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.2
|
|
|
|
import UM 1.2 as UM
|
|
import Cura 1.0 as Cura
|
|
|
|
Item
|
|
{
|
|
property var status: "disconnected"
|
|
width: childrenRect.width
|
|
height: childrenRect.height
|
|
UM.RecolorImage
|
|
{
|
|
id: statusIcon
|
|
width: UM.Theme.getSize("printer_status_icon").width
|
|
height: UM.Theme.getSize("printer_status_icon").height
|
|
sourceSize.width: width
|
|
sourceSize.height: width
|
|
color: UM.Theme.getColor("tab_status_" + parent.status)
|
|
source: UM.Theme.getIcon(parent.status)
|
|
}
|
|
}
|
|
|
|
|
|
|