mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-03 20:18:31 -04:00
qs/media: replace FBOs with ClippingRectangle and rewrite seekbar as a
shader
This commit is contained in:
@@ -4,6 +4,7 @@ import qs.Common
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import Quickshell.Services.Mpris
|
||||
import Quickshell.Widgets
|
||||
|
||||
DankOSD {
|
||||
id: root
|
||||
@@ -185,10 +186,11 @@ DankOSD {
|
||||
visible: false
|
||||
}
|
||||
|
||||
Item {
|
||||
id: blurredBg
|
||||
ClippingRectangle {
|
||||
anchors.fill: parent
|
||||
visible: false
|
||||
radius: Theme.cornerRadius
|
||||
color: "transparent"
|
||||
opacity: 0.7
|
||||
|
||||
MultiEffect {
|
||||
anchors.centerIn: parent
|
||||
@@ -203,24 +205,6 @@ DankOSD {
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: bgMask
|
||||
anchors.fill: parent
|
||||
radius: Theme.cornerRadius
|
||||
visible: false
|
||||
layer.enabled: true
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
anchors.fill: parent
|
||||
source: blurredBg
|
||||
maskEnabled: true
|
||||
maskSource: bgMask
|
||||
maskThresholdMin: 0.5
|
||||
maskSpreadAtMin: 1.0
|
||||
opacity: 0.7
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: Theme.cornerRadius
|
||||
|
||||
Reference in New Issue
Block a user