MonitorSection.qml 633 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2017 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import UM 1.5 as UM
  5. import Cura 1.0 as Cura
  6. Item
  7. {
  8. id: base
  9. property string label
  10. height: childrenRect.height
  11. Rectangle
  12. {
  13. color: UM.Theme.getColor("setting_category")
  14. width: base.width
  15. height: UM.Theme.getSize("section").height
  16. UM.Label
  17. {
  18. anchors.verticalCenter: parent.verticalCenter
  19. anchors.left: parent.left
  20. anchors.leftMargin: UM.Theme.getSize("default_margin").width
  21. text: label
  22. }
  23. }
  24. }