mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54: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.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.10
|
import QtQuick 2.10
|
||||||
@ -7,20 +7,16 @@ import QtQuick.Controls 2.3
|
|||||||
import UM 1.4 as UM
|
import UM 1.4 as UM
|
||||||
import Cura 1.1 as Cura
|
import Cura 1.1 as Cura
|
||||||
|
|
||||||
Column
|
Item
|
||||||
{
|
{
|
||||||
property var profile: Cura.API.account.userProfile
|
property var profile: Cura.API.account.userProfile
|
||||||
property bool loggedIn: Cura.API.account.isLoggedIn
|
property bool loggedIn: Cura.API.account.isLoggedIn
|
||||||
property var profileImage: Cura.API.account.profileImageUrl
|
property var profileImage: Cura.API.account.profileImageUrl
|
||||||
|
|
||||||
|
|
||||||
padding: UM.Theme.getSize("wide_margin").height
|
|
||||||
spacing: UM.Theme.getSize("wide_margin").height
|
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
id: accountOperations
|
id: accountOperations
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.centerIn: parent
|
||||||
sourceComponent: loggedIn ? userOperations : generalOperations
|
sourceComponent: loggedIn ? userOperations : generalOperations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ Item
|
|||||||
|
|
||||||
opacity: opened ? 1 : 0
|
opacity: opened ? 1 : 0
|
||||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||||
|
padding: UM.Theme.getSize("wide_margin").height
|
||||||
contentItem: AccountDetails
|
contentItem: AccountDetails
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user