From 1accd60b862fffa59c3025bede7225d9e5a1500d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 17 May 2023 17:40:00 +0200 Subject: [PATCH] just use padding to ensure a good width for "Sync now" button Signed-off-by: Matthieu Gallien --- src/gui/tray/SyncStatus.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.30.2