MonitorItem.qml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. color: UM.Theme.getColor("main_background")
  15. anchors.right: parent.right
  16. width: parent.width * 0.3
  17. anchors.top: parent.top
  18. anchors.bottom: parent.bottom
  19. Cura.PrintMonitor
  20. {
  21. anchors.fill: parent
  22. }
  23. Rectangle
  24. {
  25. id: footerSeparator
  26. width: parent.width
  27. height: UM.Theme.getSize("wide_lining").height
  28. color: UM.Theme.getColor("wide_lining")
  29. anchors.bottom: monitorButton.top
  30. anchors.bottomMargin: UM.Theme.getSize("thick_margin").height
  31. }
  32. // MonitorButton is actually the bottom footer panel.
  33. Cura.MonitorButton
  34. {
  35. id: monitorButton
  36. anchors.bottom: parent.bottom
  37. anchors.left: parent.left
  38. anchors.right: parent.right
  39. }
  40. }
  41. }
  42. }