Files
z-bar-qt/Drawers/Panels.qml
T
Zacharias-Brohn 91a4f95fd0 major updates
2025-11-24 22:00:50 +01:00

34 lines
698 B
QML

import Quickshell
import QtQuick
import QtQuick.Shapes
import qs.Modules as Modules
import qs.Config
Item {
id: root
required property ShellScreen screen
required property Item bar
readonly property alias popouts: popouts
anchors.fill: parent
anchors.margins: 8
anchors.topMargin: bar.implicitHeight
Modules.Wrapper {
id: popouts
screen: root.screen
anchors.top: parent.top
x: {
const off = currentCenter - 8 - nonAnimWidth / 2;
const diff = root.width - Math.floor(off + nonAnimWidth);
if (diff < 0)
return off + diff;
return Math.max(off, 0);
}
}
}