MenuSeparator.qml 548 B

12345678910111213141516171819202122
  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 QtQuick.Controls 2.3
  5. import UM 1.1 as UM
  6. //
  7. // MenuSeparator with Cura styling.
  8. //
  9. MenuSeparator
  10. {
  11. leftPadding: UM.Theme.getSize("default_margin").width
  12. rightPadding: UM.Theme.getSize("default_margin").width
  13. contentItem: Rectangle
  14. {
  15. implicitHeight: UM.Theme.getSize("default_lining").height
  16. color: UM.Theme.getColor("setting_control_border")
  17. }
  18. height: visible ? implicitHeight: 0
  19. }