remove layering when not floating

This commit is contained in:
lucy 2026-11-04 22:09:35 +01:00
commit e4878501de
2 changed files with 5 additions and 5 deletions

View file

@ -2,18 +2,18 @@
"appearance": {
"accent": "base0D",
"currentTheme": "base16-gruvbox-dark.json",
"font": "Inter",
"font": "Maple Mono Normal",
"fontSize": 14,
"iconSize": 16,
"rounding": 24
"rounding": 20
},
"bar": {
"floating": true,
"floating": false,
"height": 40,
"opacity": 0.2
},
"wallpaper": {
"wallDir": "/home/lucy/.walls/",
"wallpaper": "/home/lucy/.walls/lain_blue.jpg"
"wallpaper": "/home/lucy/.walls/walkingcastle.png"
}
}

View file

@ -10,7 +10,7 @@ Rectangle {
property real activeBoost: 0.06
property bool active: false
readonly property real baseLightness: Math.min(1.0, barColor.hslLightness + lightnessBoost)
property color base: Qt.hsla(barColor.hslHue, barColor.hslSaturation, active ? Math.min(1.0, baseLightness + activeBoost) : baseLightness)
property color base: Config.cfg.bar.floating ? Qt.hsla(barColor.hslHue, barColor.hslSaturation, active ? Math.min(1.0, baseLightness + activeBoost) : baseLightness) : barColor
color: base
implicitHeight: Config.cfg.bar.height - 8
radius: Config.cfg.appearance.rounding - 4