Files
z-bar-qt/Drawers/Panels.qml
T
2025-11-27 21:48:43 +01:00

35 lines
715 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 - nonAnimWidth / 2;
const diff = root.width - Math.floor(off + nonAnimWidth);
if ( diff < 0 )
return off + diff;
return Math.floor( Math.max( off, 0 ));
}
}
}