GeneralOperations.qml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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", "Create account")
  15. color: UM.Theme.getColor("secondary")
  16. hoverColor: UM.Theme.getColor("secondary")
  17. textColor: UM.Theme.getColor("main_window_header_button_text_active")
  18. textHoverColor: UM.Theme.getColor("main_window_header_button_text_active")
  19. onClicked: Qt.openUrlExternally("https://account.ultimaker.com/app/create")
  20. fixedWidthMode: true
  21. }
  22. Cura.ActionButton
  23. {
  24. width: UM.Theme.getSize("account_button").width
  25. height: UM.Theme.getSize("account_button").height
  26. text: catalog.i18nc("@button", "Login")
  27. onClicked: Cura.API.account.login()
  28. fixedWidthMode: true
  29. }
  30. }