From fe53933b044fc9fbc9063026ffdc5d2efe608716 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 20 Feb 2024 17:09:10 +0800 Subject: [PATCH] Improve design of materialised file delegates Signed-off-by: Claudio Cambra --- src/gui/macOS/ui/FileProviderEvictionDialog.qml | 3 +++ src/gui/macOS/ui/FileProviderFileDelegate.qml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/macOS/ui/FileProviderEvictionDialog.qml b/src/gui/macOS/ui/FileProviderEvictionDialog.qml index 674d6b94d5..01db805c8b 100644 --- a/src/gui/macOS/ui/FileProviderEvictionDialog.qml +++ b/src/gui/macOS/ui/FileProviderEvictionDialog.qml @@ -67,6 +67,9 @@ ApplicationWindow { Layout.fillWidth: true Layout.fillHeight: true + Layout.leftMargin: Style.standardSpacing + Layout.rightMargin: Style.standardSpacing + clip: true model: root.materialisedItemsModel delegate: FileProviderFileDelegate { diff --git a/src/gui/macOS/ui/FileProviderFileDelegate.qml b/src/gui/macOS/ui/FileProviderFileDelegate.qml index 25d812f662..d364a364c3 100644 --- a/src/gui/macOS/ui/FileProviderFileDelegate.qml +++ b/src/gui/macOS/ui/FileProviderFileDelegate.qml @@ -90,11 +90,12 @@ Item { id: deleteButton Layout.minimumWidth: implicitWidth - Layout.fillHeight: true Layout.alignment: Qt.AlignRight | Qt.AlignVCenter text: qsTr("Delete") + textColorHovered: Style.ncHeaderTextColor bgColor: Style.errorBoxBackgroundColor + contentsFont.bold: true onClicked: root.evictItem(root.identifier, root.domainIdentifier) } }