This commit is contained in:
Zacharias-Brohn
2026-02-14 18:20:28 +01:00
parent 4286122a97
commit c5b769b6e0
6 changed files with 36 additions and 11 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
pragma ComponentBehavior: Bound
import Quickshell
import QtQuick
import QtQuick.Effects
import qs.Modules
@@ -10,12 +11,13 @@ Item {
id: root
required property Item bar
required property PersistentProperties visibilities
anchors.fill: parent
CustomRect {
anchors.fill: parent
color: DynamicColors.palette.m3surface
color: Config.autoHide && !root.visibilities.bar ? "transparent" : DynamicColors.palette.m3surface
layer.enabled: true
@@ -36,9 +38,12 @@ Item {
Rectangle {
anchors.fill: parent
anchors.topMargin: root.bar.implicitHeight
anchors.topMargin: Config.autoHide && !root.visibilities.bar ? 4 : root.bar.implicitHeight
topLeftRadius: 8
topRightRadius: 8
Behavior on anchors.topMargin {
Anim {}
}
}
}
}