Make wallpapers rounded in WallpaperSelector
This commit is contained in:
parent
bd056cc981
commit
4ebc4cd299
2 changed files with 16 additions and 41 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue