GeneralOperations.qml 864 B

12345678910111213141516171819202122232425262728293031
  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.SecondaryButton
  11. {
  12. width: UM.Theme.getSize("account_button").width
  13. height: UM.Theme.getSize("account_button").height
  14. text: catalog.i18nc("@button", "Create account")
  15. onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
  16. fixedWidthMode: true
  17. }
  18. Cura.PrimaryButton
  19. {
  20. width: UM.Theme.getSize("account_button").width
  21. height: UM.Theme.getSize("account_button").height
  22. text: catalog.i18nc("@button", "Login")
  23. onClicked: Cura.API.account.login()
  24. fixedWidthMode: true
  25. }
  26. }