mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 23:34:32 +08:00
Convert the account details into an item
No idea why it was a column. CURA-7454
This commit is contained in:
parent
1f402569ad
commit
6d86cbf03c
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Copyright (c) 2020 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
@ -7,20 +7,16 @@ import QtQuick.Controls 2.3
|
||||
import UM 1.4 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
Column
|
||||
Item
|
||||
{
|
||||
property var profile: Cura.API.account.userProfile
|
||||
property bool loggedIn: Cura.API.account.isLoggedIn
|
||||
property var profileImage: Cura.API.account.profileImageUrl
|
||||
|
||||
|
||||
padding: UM.Theme.getSize("wide_margin").height
|
||||
spacing: UM.Theme.getSize("wide_margin").height
|
||||
|
||||
Loader
|
||||
{
|
||||
id: accountOperations
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.centerIn: parent
|
||||
sourceComponent: loggedIn ? userOperations : generalOperations
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ Item
|
||||
|
||||
opacity: opened ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||
|
||||
padding: UM.Theme.getSize("wide_margin").height
|
||||
contentItem: AccountDetails
|
||||
{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user