summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Panes.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-09 15:15:49 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-22 08:33:36 -0500
commit2c2805abc3dc41ecfb6c48d3707d23423568c5a2 (patch)
tree71dab16530ad4c0bc47b08d7dec1107093879f37 /modules/controlcenter/Panes.qml
parentonly show active workspaces, fix colors (diff)
downloadcaelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.tar.gz
caelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.tar.bz2
caelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.zip
remove more stuffff
Diffstat (limited to 'modules/controlcenter/Panes.qml')
-rw-r--r--modules/controlcenter/Panes.qml17
1 files changed, 7 insertions, 10 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml
index c239b91..03f74be 100644
--- a/modules/controlcenter/Panes.qml
+++ b/modules/controlcenter/Panes.qml
@@ -3,9 +3,6 @@ pragma ComponentBehavior: Bound
import "bluetooth"
import "network"
import "audio"
-import "appearance"
-import "taskbar"
-import "launcher"
import qs.components
import qs.services
import qs.config
@@ -103,7 +100,7 @@ ClippingRectangle {
implicitHeight: root.height
property bool hasBeenLoaded: false
-
+
function updateActive(): void {
const diff = Math.abs(root.session.activeIndex - pane.paneIndex);
const isActivePane = diff === 0;
@@ -130,37 +127,37 @@ ClippingRectangle {
anchors.fill: parent
clip: false
active: false
-
+
Component.onCompleted: {
Qt.callLater(pane.updateActive);
}
-
+
onActiveChanged: {
if (active && !pane.hasBeenLoaded) {
pane.hasBeenLoaded = true;
}
-
+
if (active && !item) {
loader.setSource(pane.componentPath, {
"session": root.session
});
}
}
-
+
onItemChanged: {
if (item) {
pane.hasBeenLoaded = true;
}
}
}
-
+
Connections {
target: root.session
function onActiveIndexChanged(): void {
pane.updateActive();
}
}
-
+
Connections {
target: layout
function onInitialOpeningCompleteChanged(): void {