MonitorSection.qml 828 B

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