mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Restyle the dropdown of the accounts, with information about the user
and available operations that can be done when the user is logged in or not. Contributes to CURA-5784.
This commit is contained in:
parent
b89c220a4d
commit
5befc0b256
12 changed files with 267 additions and 76 deletions
35
resources/qml/Account/UserOperations.qml
Normal file
35
resources/qml/Account/UserOperations.qml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.1
|
||||
|
||||
import UM 1.4 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
import "../components"
|
||||
|
||||
Row
|
||||
{
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
ActionButton
|
||||
{
|
||||
width: UM.Theme.getSize("account_button").width
|
||||
height: UM.Theme.getSize("account_button").height
|
||||
text: catalog.i18nc("@button", "Manage account")
|
||||
color: UM.Theme.getColor("secondary")
|
||||
hoverColor: UM.Theme.getColor("secondary")
|
||||
textColor: UM.Theme.getColor("text_link")
|
||||
textHoverColor: UM.Theme.getColor("text")
|
||||
onClicked: Qt.openUrlExternally("https://account.ultimaker.com")
|
||||
}
|
||||
|
||||
ActionButton
|
||||
{
|
||||
width: UM.Theme.getSize("account_button").width
|
||||
height: UM.Theme.getSize("account_button").height
|
||||
text: catalog.i18nc("@button", "Logout")
|
||||
onClicked: Cura.API.account.logout()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue