add option to change rounding

This commit is contained in:
lucy 2026-05-17 12:26:20 +02:00
commit 51716af8d0
4 changed files with 10 additions and 3 deletions

View file

@ -18,7 +18,7 @@ Variants {
right: true
}
implicitHeight: Config.barHeight
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, 0.8)
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
layer: WlrLayer.Top
RowLayout {

View file

@ -29,6 +29,10 @@ IpcHandler {
Config.rounding = newRounding;
}
function setOpacity(newOpacity: double) {
Config.opacity = newOpacity;
}
function setWall(newWall: string) {
if (newWall.startsWith("/")) {
Config.wallpaper = "file://" + newWall;

View file

@ -12,6 +12,7 @@ Singleton {
property int rounding: 0
property url wallpaper: "file:///home/lucy/.walls/frierensuff.png"
property bool floating: false
property double opacity: 1.0
Settings {
location: Qt.resolvedUrl("file:///home/lucy/.config/quickshell/settings/settings.ini")
@ -20,5 +21,6 @@ Singleton {
property alias barHeight: root.barHeight
property alias roudning: root.rounding
property alias wallpaper: root.wallpaper
property alias opacity: root.opacity
}
}

View file

@ -2,5 +2,6 @@
barHeight=34
font=Maple Mono
fontSize=16
roudning=0
wallpaper=@Variant(\0\0\0\x11\0\0\0!file:///home/lucy/.wall/faris.png)
opacity=1
roudning=16
wallpaper=@Variant(\0\0\0\x11\0\0\0)file:///home/lucy/.wall/walkingcastle.png)