mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Added status icon
This commit is contained in:
parent
4c7ec3920d
commit
ffccdd99c0
4 changed files with 26 additions and 10 deletions
|
@ -10,16 +10,17 @@ import UM 1.2 as UM
|
|||
import Cura 1.0 as Cura
|
||||
|
||||
Item {
|
||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||
property var status: "unknown"
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
Image {
|
||||
UM.RecolorImage {
|
||||
id: statusIcon
|
||||
width: UM.Theme.getSize("status_icon").width
|
||||
height: UM.Theme.getSize("status_icon").height
|
||||
width: UM.Theme.getSize("printer_status_icon").width
|
||||
height: UM.Theme.getSize("printer_status_icon").height
|
||||
sourceSize.width: width
|
||||
sourceSize.height: width
|
||||
source: printerConnected ? UM.Theme.getIcon("tab_status_connected") : UM.Theme.getIcon("tab_status_busy")
|
||||
color: UM.Theme.getColor("tab_status_" + parent.status )
|
||||
source: UM.Theme.getIcon("tab_status_" + parent.status )
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue