ExtruderButton.qml 560 B

12345678910111213141516171819202122232425
  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 QtQuick.Controls 2.0
  5. import UM 1.5 as UM
  6. import Cura 1.0 as Cura
  7. UM.ToolbarButton
  8. {
  9. id: base
  10. property var extruder
  11. property var extruderNumberFont: UM.Theme.getFont("small_emphasis")
  12. toolItem: ExtruderIcon
  13. {
  14. materialColor: extruder.color
  15. extruderEnabled: extruder.stack.isEnabled
  16. iconVariant: "default"
  17. font: extruderNumberFont
  18. property int index: extruder.index
  19. }
  20. }