MonitorSection.qml 793 B

123456789101112131415161718192021222324252627282930313233
  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 QtQuick.Controls 1.4
  5. import QtQuick.Layouts 1.3
  6. import UM 1.2 as UM
  7. import Cura 1.0 as Cura
  8. Item
  9. {
  10. id: base
  11. property string label
  12. height: childrenRect.height
  13. Rectangle
  14. {
  15. color: UM.Theme.getColor("setting_category")
  16. width: base.width
  17. height: UM.Theme.getSize("section").height
  18. Label
  19. {
  20. anchors.verticalCenter: parent.verticalCenter
  21. anchors.left: parent.left
  22. anchors.leftMargin: UM.Theme.getSize("default_margin").width
  23. text: label
  24. font: UM.Theme.getFont("default")
  25. color: UM.Theme.getColor("setting_category_text")
  26. }
  27. }
  28. }