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;