add option to change rounding
This commit is contained in:
parent
798f6a618c
commit
51716af8d0
4 changed files with 10 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue