ManagePackagesButton.qml 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) 2021 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import UM 1.2 as UM
  4. import Cura 1.6 as Cura
  5. import QtQuick 2.15
  6. import QtQuick.Controls 2.15
  7. Button
  8. {
  9. id: root
  10. width: childrenRect.width
  11. height: childrenRect.height
  12. hoverEnabled: true
  13. background: Rectangle
  14. {
  15. color: UM.Theme.getColor("action_button")
  16. border.color: "transparent"
  17. border.width: UM.Theme.getSize("default_lining").width
  18. }
  19. Cura.ToolTip
  20. {
  21. id: tooltip
  22. tooltipText: catalog.i18nc("@info:tooltip", "Manage packages")
  23. arrowSize: 0
  24. visible: root.hovered
  25. }
  26. UM.RecolorImage
  27. {
  28. id: icon
  29. width: UM.Theme.getSize("section_icon").width
  30. height: UM.Theme.getSize("section_icon").height
  31. color: UM.Theme.getColor("icon")
  32. source: UM.Theme.getIcon("Settings")
  33. }
  34. }