Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: modify application group rounded corners #285

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}
Loading