PrintJobContextMenuItem.qml 650 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2021 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 2.0
  5. import UM 1.5 as UM
  6. Button
  7. {
  8. background: Rectangle
  9. {
  10. opacity: parent.down || parent.hovered ? 1 : 0
  11. color: UM.Theme.getColor("monitor_context_menu_hover")
  12. }
  13. contentItem: UM.Label
  14. {
  15. color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
  16. text: parent.text
  17. horizontalAlignment: Text.AlignLeft
  18. }
  19. height: visible ? 39 * screenScaleFactor : 0 // TODO: Theme!
  20. hoverEnabled: true
  21. width: parent.width
  22. }