Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/Account/UserOperations.qml')
-rw-r--r--resources/qml/Account/UserOperations.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/resources/qml/Account/UserOperations.qml b/resources/qml/Account/UserOperations.qml
index be858df993..9e5d082738 100644
--- a/resources/qml/Account/UserOperations.qml
+++ b/resources/qml/Account/UserOperations.qml
@@ -30,6 +30,7 @@ Column
height: UM.Theme.getSize("main_window_header").height
source: profile["profile_image_url"] ? profile["profile_image_url"] : ""
+ maskColor: UM.Theme.getColor("main_background")
outlineColor: UM.Theme.getColor("main_background")
}
Rectangle
@@ -45,7 +46,7 @@ Column
{
id: initialLabel
anchors.centerIn: parent
- text: profile["username"].charAt(0).toUpperCase()
+ text: profile.username.charAt(0).toUpperCase()
font: UM.Theme.getFont("large_bold")
horizontalAlignment: Text.AlignHCenter
}
@@ -89,8 +90,9 @@ Column
Cura.TertiaryButton
{
id: cloudButton
- width: UM.Theme.getSize("account_button").width
+ width: parent.width
height: UM.Theme.getSize("account_button").height
+
text: "Ultimaker Digital Factory"
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerDigitalFactoryUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-DF")
fixedWidthMode: false
@@ -99,8 +101,9 @@ Column
Cura.TertiaryButton
{
id: accountButton
- width: UM.Theme.getSize("account_button").width
+ width: parent.width
height: UM.Theme.getSize("account_button").height
+
text: catalog.i18nc("@button", "Ultimaker Account")
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-account")
fixedWidthMode: false
@@ -116,7 +119,11 @@ Column
Cura.TertiaryButton
{
id: signOutButton
+ width: parent.width
+ height: UM.Theme.getSize("account_button").height
+
onClicked: Cura.API.account.logout()
text: catalog.i18nc("@button", "Sign Out")
+ fixedWidthMode: false
}
}