mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Create an AvatarImage component that will show the profile image of the
user. Still WIP. Create an AccountWidget (WIP) that shows the avatar image and the dropdown menu to manage accounts. Contributes to CURA-5784.
This commit is contained in:
parent
41add97b13
commit
2ffcf03f43
7 changed files with 193 additions and 3 deletions
|
@ -4,11 +4,12 @@
|
|||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
import QtQuick.Layouts 1.1
|
||||
|
||||
import UM 1.4 as UM
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
import "components"
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: base
|
||||
|
@ -75,10 +76,20 @@ Rectangle
|
|||
text: catalog.i18nc("@action:button", "Toolbox")
|
||||
anchors
|
||||
{
|
||||
right: parent.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: accountWidget.left
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
style: UM.Theme.styles.topheader_tab
|
||||
action: Cura.Actions.browsePackages
|
||||
}
|
||||
|
||||
AccountWidget
|
||||
{
|
||||
id: accountWidget
|
||||
anchors
|
||||
{
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue