MonitorSection.qml 835 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.2
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Controls.Styles 1.1
  6. import QtQuick.Layouts 1.1
  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("setting_category")
  26. color: UM.Theme.getColor("setting_category_text")
  27. }
  28. }
  29. }