mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
The size of the avatar image is now themed.
Some other small fixes in the AccountDetails componenent were done. Contributes to CURA-5784.
This commit is contained in:
parent
a4c609d514
commit
237c360a88
4 changed files with 9 additions and 5 deletions
|
@ -18,8 +18,8 @@ Column
|
|||
AvatarImage
|
||||
{
|
||||
id: avatar
|
||||
width: 75 * screenScaleFactor
|
||||
height: 75 * screenScaleFactor
|
||||
width: UM.Theme.getSize("avatar_image").width
|
||||
height: UM.Theme.getSize("avatar_image").height
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
source: loggedIn ? profile["profile_image_url"] : UM.Theme.getImage("avatar_default")
|
||||
outlineColor: loggedIn ? UM.Theme.getColor("account_widget_ouline_active") : UM.Theme.getColor("account_widget_ouline_inactive")
|
||||
|
@ -29,8 +29,8 @@ Column
|
|||
{
|
||||
id: information
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
visible: !loggedIn
|
||||
text: loggedIn ? profile["username"] : catalog.i18nc("@label", "Please login or create an account to
enjoy all features of Ultimaker Cura")
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: loggedIn ? profile["username"] : catalog.i18nc("@label", "Please log in or create an account to\nenjoy all features of Ultimaker Cura.")
|
||||
font: loggedIn ? UM.Theme.getFont("large") : UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.1
|
||||
import QtGraphicalEffects 1.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue