MonitorItem.qml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.0
  5. import QtQuick.Layouts 1.3
  6. import UM 1.2 as UM
  7. import Cura 1.0 as Cura
  8. Component
  9. {
  10. Item
  11. {
  12. Rectangle
  13. {
  14. anchors.right: parent.right
  15. width: parent.width * 0.3
  16. anchors.top: parent.top
  17. anchors.bottom: parent.bottom
  18. Cura.PrintMonitor
  19. {
  20. anchors.fill: parent
  21. }
  22. Rectangle
  23. {
  24. id: footerSeparator
  25. width: parent.width
  26. height: UM.Theme.getSize("wide_lining").height
  27. color: UM.Theme.getColor("wide_lining")
  28. anchors.bottom: monitorButton.top
  29. anchors.bottomMargin: UM.Theme.getSize("thick_margin").height
  30. }
  31. // MonitorButton is actually the bottom footer panel.
  32. Cura.MonitorButton
  33. {
  34. id: monitorButton
  35. anchors.bottom: parent.bottom
  36. anchors.left: parent.left
  37. anchors.right: parent.right
  38. }
  39. }
  40. }
  41. }