Add manual sync button (non-functional)

CURA-7290
This commit is contained in:
Nino van Hooff 2020-04-30 17:19:14 +02:00
parent 4fd5c6e337
commit 828e931f52
2 changed files with 49 additions and 0 deletions

View file

@ -13,6 +13,11 @@ Column
spacing: UM.Theme.getSize("default_margin").height
SystemPalette
{
id: palette
}
Label
{
id: title
@ -24,6 +29,43 @@ Column
color: UM.Theme.getColor("text")
}
Row
{
width: childrenRect.width
height: childrenRect.height
anchors.horizontalCenter: parent.horizontalCenter
spacing: UM.Theme.getSize("narrow_margin").height
UM.RecolorImage
{
width: 20 * screenScaleFactor
height: width
source: UM.Theme.getIcon("update")
color: palette.text
}
Label
{
id: accountSyncButton
text: catalog.i18nc("@button", "Check for account updates")
color: UM.Theme.getColor("secondary_button_text")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
MouseArea
{
anchors.fill: parent
onClicked: Cura.API.account.sync()
hoverEnabled: true
onEntered: accountSyncButton.font.underline = true
onExited: accountSyncButton.font.underline = false
}
}
}
Cura.SecondaryButton
{
id: accountButton