ModelChecker.qml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Controls.Styles 1.1
  6. import UM 1.2 as UM
  7. Button
  8. {
  9. id: modelCheckerButton
  10. UM.I18nCatalog
  11. {
  12. id: catalog
  13. name: "cura"
  14. }
  15. visible: manager.hasWarnings
  16. tooltip: catalog.i18nc("@info:tooltip", "Some things could be problematic in this print. Click to see tips for adjustment.")
  17. onClicked: manager.showWarnings()
  18. width: UM.Theme.getSize("save_button_specs_icons").width
  19. height: UM.Theme.getSize("save_button_specs_icons").height
  20. anchors.verticalCenter: parent ? parent.verticalCenter : undefined
  21. style: ButtonStyle
  22. {
  23. background: Item
  24. {
  25. UM.RecolorImage
  26. {
  27. width: UM.Theme.getSize("save_button_specs_icons").width;
  28. height: UM.Theme.getSize("save_button_specs_icons").height;
  29. sourceSize.height: width;
  30. color: control.hovered ? UM.Theme.getColor("text_scene_hover") : UM.Theme.getColor("text_scene");
  31. source: "model_checker.svg"
  32. }
  33. }
  34. }
  35. }