mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-03 07:41:18 -07:00
Restyle the dropdown of the accounts, with information about the user
and available operations that can be done when the user is logged in or not. Contributes to CURA-5784.
This commit is contained in:
parent
b89c220a4d
commit
5befc0b256
12 changed files with 267 additions and 76 deletions
|
|
@ -1,13 +1,14 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
import UM 1.4 as UM
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
import "../components"
|
||||
import "../Account"
|
||||
|
||||
Rectangle
|
||||
|
|
@ -72,13 +73,30 @@ Rectangle
|
|||
Button
|
||||
{
|
||||
id: toolboxShortcutButton
|
||||
text: catalog.i18nc("@action:button", "Toolbox")
|
||||
anchors
|
||||
{
|
||||
right: accountWidget.left
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
style: ButtonStyle
|
||||
{
|
||||
background: Rectangle
|
||||
{
|
||||
color: control.hovered ? UM.Theme.getColor("secondary") : UM.Theme.getColor("topheader_button_background_active")
|
||||
radius: 2 * screenScaleFactor
|
||||
}
|
||||
|
||||
label: Label
|
||||
{
|
||||
text: catalog.i18nc("@action:button", "Toolbox")
|
||||
color: UM.Theme.getColor("topheader_button_text_active")
|
||||
font: UM.Theme.getFont("action_button")
|
||||
renderType: Text.NativeRendering
|
||||
anchors.verticalCenter: control.verticalCenter
|
||||
}
|
||||
|
||||
}
|
||||
style: UM.Theme.styles.topheader_tab
|
||||
action: Cura.Actions.browsePackages
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue