feat: round corners auf audioman

This commit is contained in:
Nydragon 2024-09-28 02:33:18 +02:00
parent b9215cdc92
commit 98c0308a52
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
2 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,3 @@
//@ pragma UseQApplication
import Quickshell import Quickshell
// for ShellRoot and PanelWindow // for ShellRoot and PanelWindow

View file

@ -25,7 +25,7 @@ PopupWindow {
anchors.fill: parent anchors.fill: parent
onClicked: audioman.visible = false onClicked: audioman.visible = false
BRectangle { Rectangle {
id: display id: display
x: lbar.width * 1.2 x: lbar.width * 1.2
@ -33,16 +33,17 @@ PopupWindow {
width: 500 width: 500
height: 600 height: 600
color: "transparent"
Image { Image {
id: background id: background
anchors.fill: parent anchors.fill: parent
source: Player.current?.trackArtUrl ?? "" source: Player.current?.trackArtUrl ?? ""
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
visible: true visible: false
} }
MultiEffect { MultiEffect {
id: image
autoPaddingEnabled: false autoPaddingEnabled: false
source: background source: background
anchors.fill: background anchors.fill: background
@ -51,6 +52,23 @@ PopupWindow {
blurMultiplier: 2 blurMultiplier: 2
blur: 1 blur: 1
brightness: -0.15 brightness: -0.15
maskEnabled: true
maskSource: mask
}
Item {
id: mask
width: image.width
height: image.height
layer.enabled: true
visible: false
Rectangle {
width: image.width
height: image.height
radius: 10
color: "black"
}
} }
ScrollView { ScrollView {