summaryrefslogtreecommitdiff
path: root/modules/controlcenter/ControlCenter.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-07 16:59:13 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-07 16:59:13 +1000
commita9f7d1efc154ee039c47cf37cb48342b08848014 (patch)
tree44c4034461d2803d7fdef6dc352b4479de53a0ed /modules/controlcenter/ControlCenter.qml
parentcontrolcenter: fix navrail colours (diff)
downloadcaelestia-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.qml21
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