Skip to content

Commit

Permalink
fix: added blurMultiplier adjustment
Browse files Browse the repository at this point in the history
The blur effect can be adjusted by blurMultiplier

Issue: linuxdeepin/developer-center#9374
  • Loading branch information
xionglinlin authored and deepin-bot[bot] committed Jun 21, 2024
1 parent ee907b1 commit f111208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qt6/src/qml/FloatingPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ Control {
property int radius: DS.Style.floatingPanel.radius
// blur radius
property int blurRadius: 64
// blur blurMultiplier
property real blurMultiplier: 0.0

background: D.InWindowBlur {
id: blur
implicitWidth: DS.Style.floatingPanel.width
implicitHeight: DS.Style.floatingPanel.height
radius: blurRadius
multiplier: blurMultiplier
offscreen: true

D.ItemViewport {
Expand Down
1 change: 1 addition & 0 deletions qt6/src/qml/overridable/InWindowBlur.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Item {
id :control
property bool offscreen: false
property alias radius: blur.blurMax
property alias multiplier: blur.blurMultiplier
property alias content: blur
default property alias data: blitter.data
readonly property bool valid: blitter.blitterEnabled
Expand Down

0 comments on commit f111208

Please sign in to comment.