MonitorItem.qml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 UM 1.2 as UM
  6. import Cura 1.0 as Cura
  7. Component
  8. {
  9. Item
  10. {
  11. Rectangle
  12. {
  13. color: UM.Theme.getColor("main_background")
  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.top: parent.top
  21. anchors.left: parent.left
  22. anchors.right: parent.right
  23. anchors.bottom: footerSeparator.top
  24. }
  25. Rectangle
  26. {
  27. id: footerSeparator
  28. width: parent.width
  29. height: UM.Theme.getSize("wide_lining").height
  30. color: UM.Theme.getColor("wide_lining")
  31. anchors.bottom: monitorButton.top
  32. anchors.bottomMargin: UM.Theme.getSize("thick_margin").height
  33. }
  34. // MonitorButton is actually the bottom footer panel.
  35. Cura.MonitorButton
  36. {
  37. id: monitorButton
  38. anchors.bottom: parent.bottom
  39. anchors.left: parent.left
  40. anchors.right: parent.right
  41. }
  42. }
  43. }
  44. }