Skip to content

Commit

Permalink
feat: modify application group rounded corners
Browse files Browse the repository at this point in the history
Modify the rounded corners of windowed to 20

Issue: linuxdeepin/developer-center#8336
  • Loading branch information
mhduiy authored and deepin-bot[bot] committed May 23, 2024
1 parent 085b300 commit ffbf93b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions qml/FolderGridViewPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -280,4 +281,4 @@ Popup {
outsideBorderColor: isWindowedMode ? DStyle.Style.floatingPanel.outsideBorder : null
insideBorderColor: isWindowedMode ? DStyle.Style.floatingPanel.insideBorder : null
}
}
}

0 comments on commit ffbf93b

Please sign in to comment.