UserOperations.qml 972 B

123456789101112131415161718192021222324252627282930313233
  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 UM 1.4 as UM
  6. import Cura 1.1 as Cura
  7. Row
  8. {
  9. spacing: UM.Theme.getSize("default_margin").width
  10. Cura.ActionButton
  11. {
  12. width: UM.Theme.getSize("account_button").width
  13. height: UM.Theme.getSize("account_button").height
  14. text: catalog.i18nc("@button", "Manage account")
  15. color: UM.Theme.getColor("secondary")
  16. hoverColor: UM.Theme.getColor("secondary")
  17. textColor: UM.Theme.getColor("text_link")
  18. textHoverColor: UM.Theme.getColor("text")
  19. onClicked: Qt.openUrlExternally("https://account.ultimaker.com")
  20. }
  21. Cura.ActionButton
  22. {
  23. width: UM.Theme.getSize("account_button").width
  24. height: UM.Theme.getSize("account_button").height
  25. text: catalog.i18nc("@button", "Logout")
  26. onClicked: Cura.API.account.logout()
  27. }
  28. }