Skip to content

Commit

Permalink
fix: modify the background blur effect
Browse files Browse the repository at this point in the history
Modify the background blur effect of the full-screen application group

Issue: linuxdeepin/developer-center#9374
  • Loading branch information
xionglinlin committed Jun 27, 2024
1 parent 2f7527f commit fb23c29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qml/FolderGridViewPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Popup {
// anchors.centerIn: parent // seems dtkdeclarative's Popup doesn't have anchors.centerIn

width: cs * 4 + 20 /* padding */
height: cs * 3 + 130 /* title height*/

// TODO: 经验证发现:Poppu窗口高度为奇数时,会多显示一个像素的外边框;为偶数时不会显示
// 因此,这里需要保证高度是偶数来确保Popup窗口没有外边框
height: (cs * 3) % 2 === 0 ? (cs * 3) : (cs * 3 + 1) + 130 /* title height*/
x: (parent.width - width) / 2
y: (parent.height - height) / 2

Expand Down Expand Up @@ -315,6 +318,7 @@ Popup {
}
background: FloatingPanel {
radius: isWindowedMode ? 12 : 36
blurMultiplier: 5.0
backgroundColor: Palette {
normal: Qt.rgba(1.0, 1.0, 1.0, 0.2)
normalDark: Qt.rgba(1.0, 1.0, 1.0, 0.2)
Expand Down

0 comments on commit fb23c29

Please sign in to comment.