From ffbf93ba5595935752d0e9941e9d7c2178316ec3 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Wed, 22 May 2024 16:29:15 +0800 Subject: [PATCH] feat: modify application group rounded corners Modify the rounded corners of windowed to 20 Issue: https://github.com/linuxdeepin/developer-center/issues/8336 --- qml/FolderGridViewPopup.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qml/FolderGridViewPopup.qml b/qml/FolderGridViewPopup.qml index e583e4b9..36fb0fc7 100644 --- a/qml/FolderGridViewPopup.qml +++ b/qml/FolderGridViewPopup.qml @@ -62,6 +62,7 @@ Popup { spacing: isWindowedMode ? 0 : 5 anchors.fill: parent property bool nameEditing: false + property int titleMargin: isWindowedMode ? 20 : 30 Item { visible: !isWindowedMode @@ -71,8 +72,8 @@ Popup { TextInput { id: folderNameEdit Layout.fillWidth: true - Layout.leftMargin: 30 - root.padding - Layout.rightMargin: 30 - root.padding + Layout.leftMargin: contentRoot.titleMargin - root.padding + Layout.rightMargin: contentRoot.titleMargin - root.padding visible: contentRoot.nameEditing clip: true font: folderNameFont @@ -96,8 +97,8 @@ Popup { Text { id: folderNameText Layout.fillWidth: true - Layout.leftMargin: 30 - root.padding - Layout.rightMargin: 30 - root.padding + Layout.leftMargin: contentRoot.titleMargin - root.padding + Layout.rightMargin: contentRoot.titleMargin - root.padding clip: true font: folderNameFont horizontalAlignment: Text.AlignHCenter @@ -280,4 +281,4 @@ Popup { outsideBorderColor: isWindowedMode ? DStyle.Style.floatingPanel.outsideBorder : null insideBorderColor: isWindowedMode ? DStyle.Style.floatingPanel.insideBorder : null } -} \ No newline at end of file +}