PrinterStatusIcon.qml 634 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2017 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import UM 1.2 as UM
  5. import Cura 1.0 as Cura
  6. Item
  7. {
  8. property var status: "disconnected"
  9. width: childrenRect.width
  10. height: childrenRect.height
  11. UM.RecolorImage
  12. {
  13. id: statusIcon
  14. width: UM.Theme.getSize("printer_status_icon").width
  15. height: UM.Theme.getSize("printer_status_icon").height
  16. sourceSize.width: width
  17. sourceSize.height: width
  18. color: UM.Theme.getColor("tab_status_" + parent.status)
  19. source: UM.Theme.getIcon(parent.status)
  20. }
  21. }