From: Matthieu Gallien Date: Wed, 17 May 2023 15:40:00 +0000 (+0200) Subject: just use padding to ensure a good width for "Sync now" button X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~42^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1accd60b862fffa59c3025bede7225d9e5a1500d;p=nextcloud-desktop.git just use padding to ensure a good width for "Sync now" button Signed-off-by: Matthieu Gallien --- diff --git a/src/gui/tray/SyncStatus.qml b/src/gui/tray/SyncStatus.qml index 40167322c..fccf41cd3 100644 --- a/src/gui/tray/SyncStatus.qml +++ b/src/gui/tray/SyncStatus.qml @@ -109,13 +109,11 @@ RowLayout { font: syncNowButton.contentsFont } - Layout.preferredWidth: syncNowFm.boundingRect(text).width + - leftPadding + - rightPadding + - Style.standardSpacing * 2 Layout.rightMargin: Style.trayHorizontalMargin text: qsTr("Sync now") + + padding: Style.smallSpacing textColor: Style.adjustedCurrentUserHeaderColor textColorHovered: Style.currentUserHeaderTextColor contentsFont.bold: true