mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
panel: Fix panelview binding
This commit is contained in:
parent
c5fe3fc1eb
commit
c094eb7553
1 changed files with 5 additions and 2 deletions
|
|
@ -24,15 +24,18 @@ ContainmentItem {
|
||||||
id: root
|
id: root
|
||||||
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
|
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
|
// only opaque if there are no maximized windows on this screen
|
||||||
readonly property bool showingApp: WindowPlugin.WindowMaximizedTracker.showingWindow
|
readonly property bool showingApp: WindowPlugin.WindowMaximizedTracker.showingWindow
|
||||||
readonly property color backgroundColor: topPanel.colorScopeColor
|
readonly property color backgroundColor: topPanel.colorScopeColor
|
||||||
|
|
||||||
// enforce thickness
|
// enforce thickness
|
||||||
Binding {
|
Binding {
|
||||||
target: Plasmoid.Window.window // assumed to be plasma-workspace "PanelView" component
|
target: panel // assumed to be plasma-workspace "PanelView" component
|
||||||
property: "thickness"
|
property: "thickness"
|
||||||
value: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing
|
value: MobileShell.Constants.topPanelHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
//BEGIN API implementation
|
//BEGIN API implementation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue