ModelChecker.qml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 QtQuick.Layouts 1.1
  7. import QtQuick.Dialogs 1.1
  8. import QtQuick.Window 2.2
  9. import UM 1.2 as UM
  10. import Cura 1.0 as Cura
  11. Button
  12. {
  13. id: modelCheckerButton
  14. UM.I18nCatalog{id: catalog; name:"cura"}
  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. style: ButtonStyle
  21. {
  22. background: Item
  23. {
  24. UM.RecolorImage
  25. {
  26. width: UM.Theme.getSize("save_button_specs_icons").width;
  27. height: UM.Theme.getSize("save_button_specs_icons").height;
  28. sourceSize.width: width;
  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. }