traywidget background

This commit is contained in:
Zacharias-Brohn
2026-03-02 18:43:16 +01:00
parent 7451c52684
commit e5595d8b5d
3 changed files with 37 additions and 18 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ Variants {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: Config.barConfig.autoHide && !visibilities.bar ? -30 : 0 anchors.topMargin: Config.barConfig.autoHide && !visibilities.bar ? -30 : 0
color: "transparent" color: "transparent"
implicitHeight: barLoader.childrenRect.height implicitHeight: barLoader.implicitHeight
radius: 0 radius: 0
Behavior on anchors.topMargin { Behavior on anchors.topMargin {
+1 -1
View File
@@ -52,7 +52,7 @@ RowLayout {
} }
} }
implicitHeight: childrenRect.height implicitHeight: 34
CustomShortcut { CustomShortcut {
name: "toggle-overview" name: "toggle-overview"
+20 -1
View File
@@ -4,8 +4,10 @@ import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
import Quickshell import Quickshell
import Quickshell.Services.SystemTray import Quickshell.Services.SystemTray
import qs.Components
import qs.Config
Row { Item {
id: root id: root
required property PanelWindow bar required property PanelWindow bar
@@ -15,6 +17,21 @@ Row {
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: parent.top anchors.top: parent.top
implicitHeight: 34
implicitWidth: row.width + Appearance.padding.small * 2
CustomClippingRect {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: root.parent.height - ((Appearance.padding.small - 1) * 2)
radius: height / 2
Row {
id: row
anchors.centerIn: parent
spacing: 0 spacing: 0
Repeater { Repeater {
@@ -37,4 +54,6 @@ Row {
popouts: root.popouts popouts: root.popouts
} }
} }
}
}
} }