From c094eb755368dcb1b12d0fa2791ae2f04747ebda Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 22 Oct 2023 10:53:55 -0700 Subject: [PATCH] panel: Fix panelview binding --- containments/panel/package/contents/ui/main.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index ae21d715..58fc6476 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -24,15 +24,18 @@ ContainmentItem { id: root Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground + // filled in by the shell (Panel.qml) with the plasma-workspace PanelView + property var panel: null + // only opaque if there are no maximized windows on this screen readonly property bool showingApp: WindowPlugin.WindowMaximizedTracker.showingWindow readonly property color backgroundColor: topPanel.colorScopeColor // enforce thickness Binding { - target: Plasmoid.Window.window // assumed to be plasma-workspace "PanelView" component + target: panel // assumed to be plasma-workspace "PanelView" component property: "thickness" - value: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing + value: MobileShell.Constants.topPanelHeight } //BEGIN API implementation