From 321bc293f3ab80d6bcc6f2680cdf13aa1ea0147b Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 26 May 2024 22:57:29 +0200 Subject: [PATCH] Fixup AttachDialog Use standard spacing values Use implicit button size (cherry picked from commit 7f72808a9a3e4c80b04dfd006b5927e6c8490606) --- src/qml/AttachDialog.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/qml/AttachDialog.qml b/src/qml/AttachDialog.qml index 0e5cbb08e..8b5cd8ae7 100644 --- a/src/qml/AttachDialog.qml +++ b/src/qml/AttachDialog.qml @@ -13,13 +13,15 @@ import org.kde.neochat QQC2.Popup { id: root - padding: 16 + padding: Kirigami.Units.largeSpacing signal chosen(string path) contentItem: RowLayout { + + spacing: Kirigami.Units.smallSpacing + QQC2.ToolButton { - Layout.preferredWidth: 160 Layout.fillHeight: true icon.name: 'mail-attachment' @@ -37,11 +39,8 @@ QQC2.Popup { Kirigami.Separator {} QQC2.ToolButton { - Layout.preferredWidth: 160 Layout.fillHeight: true - padding: 16 - icon.name: 'insert-image' text: i18n("Clipboard image") onClicked: {