diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-07 16:59:13 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-07 16:59:13 +1000 |
| commit | a9f7d1efc154ee039c47cf37cb48342b08848014 (patch) | |
| tree | 44c4034461d2803d7fdef6dc352b4479de53a0ed /modules/controlcenter/ControlCenter.qml | |
| parent | controlcenter: fix navrail colours (diff) | |
| download | caelestia-shell-a9f7d1efc154ee039c47cf37cb48342b08848014.tar.gz caelestia-shell-a9f7d1efc154ee039c47cf37cb48342b08848014.tar.bz2 caelestia-shell-a9f7d1efc154ee039c47cf37cb48342b08848014.zip | |
controlcenter: add header when floating
Diffstat (limited to 'modules/controlcenter/ControlCenter.qml')
| -rw-r--r-- | modules/controlcenter/ControlCenter.qml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/controlcenter/ControlCenter.qml b/modules/controlcenter/ControlCenter.qml index e528389..9a34861 100644 --- a/modules/controlcenter/ControlCenter.qml +++ b/modules/controlcenter/ControlCenter.qml @@ -30,10 +30,27 @@ Item { implicitWidth: implicitHeight * Config.controlCenter.sizes.ratio implicitHeight: screen.height * Config.controlCenter.sizes.heightMult - RowLayout { + GridLayout { anchors.fill: parent - spacing: 0 + rowSpacing: 0 + columnSpacing: 0 + rows: root.floating ? 2 : 1 + columns: 2 + + Loader { + Layout.fillWidth: true + Layout.columnSpan: 2 + + asynchronous: true + active: root.floating + visible: active + + sourceComponent: WindowTitle { + screen: root.screen + session: root.session + } + } StyledRect { Layout.fillHeight: true |