ToolboxDownloadsPage.qml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // PluginBrowser is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Dialogs 1.1
  5. import QtQuick.Controls 1.4
  6. import QtQuick.Controls.Styles 1.4
  7. import UM 1.1 as UM
  8. // TODO: Switch to QtQuick.Controls 2.x and remove QtQuick.Controls.Styles
  9. ScrollView
  10. {
  11. id: base
  12. frameVisible: false
  13. width: parent.width
  14. height: parent.height
  15. style: UM.Theme.styles.scrollview
  16. Column
  17. {
  18. width: base.width
  19. spacing: UM.Theme.getSize("base_unit").height
  20. padding: UM.Theme.getSize("base_unit").height * 2
  21. height: childrenRect.height + 2 * padding
  22. ToolboxDownloadsShowcase
  23. {
  24. id: showcase
  25. width: parent.width - 2 * parent.padding
  26. }
  27. Rectangle
  28. {
  29. color: UM.Theme.getColor("text_medium")
  30. width: parent.width - 2 * parent.padding
  31. height: UM.Theme.getSize("base_unit").height / 6
  32. }
  33. ToolboxDownloadsGrid
  34. {
  35. id: allPlugins
  36. width: parent.width - 2 * parent.padding
  37. }
  38. }
  39. }