diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-07 15:38:17 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-07 15:38:17 +1000 |
| commit | d9ffc13825b56cb97bce4d31fca4abbdc42b0985 (patch) | |
| tree | eb506d597bf47e9884e959b069c446673eee312e /modules/controlcenter/ControlCenter.qml | |
| parent | dashboard: showOnHover config option (#361) (diff) | |
| download | caelestia-shell-d9ffc13825b56cb97bce4d31fca4abbdc42b0985.tar.gz caelestia-shell-d9ffc13825b56cb97bce4d31fca4abbdc42b0985.tar.bz2 caelestia-shell-d9ffc13825b56cb97bce4d31fca4abbdc42b0985.zip | |
controlcenter: add floating mode
Closes #363
Diffstat (limited to 'modules/controlcenter/ControlCenter.qml')
| -rw-r--r-- | modules/controlcenter/ControlCenter.qml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/modules/controlcenter/ControlCenter.qml b/modules/controlcenter/ControlCenter.qml index 2e7ce07..e528389 100644 --- a/modules/controlcenter/ControlCenter.qml +++ b/modules/controlcenter/ControlCenter.qml @@ -12,9 +12,19 @@ Item { id: root required property ShellScreen screen + property bool floating + readonly property int rounding: floating ? 0 : Appearance.rounding.normal + property alias active: session.active + property alias navExpanded: session.navExpanded + readonly property Session session: Session { id: session + + root: root + } + + function close(): void { } implicitWidth: implicitHeight * Config.controlCenter.sizes.ratio @@ -28,8 +38,8 @@ Item { StyledRect { Layout.fillHeight: true - topLeftRadius: Appearance.rounding.normal - bottomLeftRadius: Appearance.rounding.normal + topLeftRadius: root.rounding + bottomLeftRadius: root.rounding implicitWidth: navRail.implicitWidth color: Colours.palette.m3surfaceContainer @@ -47,6 +57,7 @@ Item { NavRail { id: navRail + screen: root.screen session: root.session } } @@ -55,6 +66,8 @@ Item { Layout.fillWidth: true Layout.fillHeight: true + topRightRadius: root.rounding + bottomRightRadius: root.rounding session: root.session } } |