Make wallpapers rounded in WallpaperSelector

This commit is contained in:
Ly-sec 2025-08-12 17:51:11 +02:00
parent bd056cc981
commit 4ebc4cd299
2 changed files with 16 additions and 41 deletions

View file

@ -5,8 +5,10 @@ import Quickshell.Widgets
import qs.Services
Rectangle {
id: root
color: "transparent"
radius: width * 0.5
property real imageRadius: width * 0.5
radius: imageRadius
readonly property real scaling: Scaling.scale(screen)
property string imagePath: ""
@ -52,7 +54,7 @@ Rectangle {
visible: false
Rectangle {
anchors.fill: parent
radius: img.width * 0.5
radius: root.imageRadius
}
}