Change SyncRow copy

CURA-7290
This commit is contained in:
Nino van Hooff 2020-05-13 16:35:39 +02:00
parent de0ef8ae62
commit 6caa0360b9
2 changed files with 9 additions and 4 deletions

View file

@ -50,7 +50,7 @@ Row // sync state icon + message
Label
{
id: stateLabel
text: catalog.i18nc("@state", "Checking...")
text: catalog.i18nc("@state", catalog.i18nc("@label", "You are in sync with your account"))
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
@ -83,7 +83,7 @@ Row // sync state icon + message
stateLabel.text = catalog.i18nc("@label", "Checking...")
} else if (newState == Cura.AccountSyncState.SUCCESS) {
icon.source = UM.Theme.getIcon("checked")
stateLabel.text = catalog.i18nc("@label", "You are up to date")
stateLabel.text = catalog.i18nc("@label", "You are in sync with your account")
} else if (newState == Cura.AccountSyncState.ERROR) {
icon.source = UM.Theme.getIcon("warning_light")
stateLabel.text = catalog.i18nc("@label", "Something went wrong...")

View file

@ -9,7 +9,10 @@ import Cura 1.1 as Cura
Column
{
width: Math.max(title.width, accountButton.width) + 2 * UM.Theme.getSize("default_margin").width
width: Match.max(
Math.max(title.width, accountButton.width) + 2 * UM.Theme.getSize("default_margin").width,
syncRow.width
)
spacing: UM.Theme.getSize("default_margin").height
@ -29,7 +32,9 @@ Column
color: UM.Theme.getColor("text")
}
SyncState {}
SyncState {
id: syncRow
}
Label
{