Menu.qml 649 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2021 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import UM 1.5 as UM
  5. import Cura 1.0 as Cura
  6. //
  7. // Menu with Cura styling.
  8. //
  9. UM.Menu
  10. {
  11. id: menu
  12. Item { enabled: false; UM.I18nCatalog { id: catalog; name: "cura"} }
  13. topPadding: UM.Theme.getSize("narrow_margin").height
  14. bottomPadding: UM.Theme.getSize("narrow_margin").height
  15. padding: 0
  16. implicitWidth: UM.Theme.getSize("menu").width
  17. delegate: Cura.MenuItem {}
  18. background: Rectangle
  19. {
  20. color: UM.Theme.getColor("main_background")
  21. border.color: UM.Theme.getColor("lining")
  22. }
  23. }