summaryrefslogtreecommitdiff
path: root/modules/controlcenter/components
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-19 21:15:40 -0500
committerATMDA <atdma2600@gmail.com>2025-11-19 21:15:40 -0500
commit147410e39bf4e0474deca3980dcaa724464cf5c3 (patch)
tree161d19ded2f40caf4021e156bee3b889df8553de /modules/controlcenter/components
parentcleanup: removed comments (diff)
downloadcaelestia-shell-147410e39bf4e0474deca3980dcaa724464cf5c3.tar.gz
caelestia-shell-147410e39bf4e0474deca3980dcaa724464cf5c3.tar.bz2
caelestia-shell-147410e39bf4e0474deca3980dcaa724464cf5c3.zip
cleanup: removed unnecessary comments
Diffstat (limited to 'modules/controlcenter/components')
-rw-r--r--modules/controlcenter/components/DeviceDetails.qml7
-rw-r--r--modules/controlcenter/components/DeviceList.qml10
-rw-r--r--modules/controlcenter/components/PaneTransition.qml12
-rw-r--r--modules/controlcenter/components/SplitPaneLayout.qml8
-rw-r--r--modules/controlcenter/components/SplitPaneWithDetails.qml2
5 files changed, 2 insertions, 37 deletions
diff --git a/modules/controlcenter/components/DeviceDetails.qml b/modules/controlcenter/components/DeviceDetails.qml
index 768e77a..d2e8835 100644
--- a/modules/controlcenter/components/DeviceDetails.qml
+++ b/modules/controlcenter/components/DeviceDetails.qml
@@ -18,10 +18,7 @@ Item {
property Component headerComponent: null
property list<Component> sections: []
- // Optional: Custom content to insert after header but before sections
property Component topContent: null
-
- // Optional: Custom content to insert after all sections
property Component bottomContent: null
implicitWidth: layout.implicitWidth
@@ -35,7 +32,6 @@ Item {
anchors.top: parent.top
spacing: Appearance.spacing.normal
- // Header component (e.g., ConnectionHeader or SettingsHeader)
Loader {
id: headerLoader
@@ -44,7 +40,6 @@ Item {
visible: root.headerComponent !== null
}
- // Top content (optional)
Loader {
id: topContentLoader
@@ -53,7 +48,6 @@ Item {
visible: root.topContent !== null
}
- // Sections
Repeater {
model: root.sections
@@ -65,7 +59,6 @@ Item {
}
}
- // Bottom content (optional)
Loader {
id: bottomContentLoader
diff --git a/modules/controlcenter/components/DeviceList.qml b/modules/controlcenter/components/DeviceList.qml
index a6821d8..75dd913 100644
--- a/modules/controlcenter/components/DeviceList.qml
+++ b/modules/controlcenter/components/DeviceList.qml
@@ -28,7 +28,6 @@ ColumnLayout {
spacing: Appearance.spacing.small
- // Header with action buttons (optional)
Loader {
id: headerLoader
@@ -37,7 +36,6 @@ ColumnLayout {
visible: root.headerComponent !== null && root.showHeader
}
- // Title and description row
RowLayout {
Layout.fillWidth: true
Layout.topMargin: root.headerComponent ? 0 : 0
@@ -61,10 +59,8 @@ ColumnLayout {
}
}
- // Expose view for access from parent components
property alias view: view
- // Description text
StyledText {
visible: root.description !== ""
Layout.fillWidth: true
@@ -72,20 +68,18 @@ ColumnLayout {
color: Colours.palette.m3outline
}
- // List view
StyledListView {
id: view
Layout.fillWidth: true
- // Use contentHeight to show all items without estimation
implicitHeight: contentHeight
model: root.model
delegate: root.delegate
spacing: Appearance.spacing.small / 2
- interactive: false // Disable individual scrolling - parent pane handles it
- clip: false // Don't clip - let parent handle scrolling
+ interactive: false
+ clip: false
}
}
diff --git a/modules/controlcenter/components/PaneTransition.qml b/modules/controlcenter/components/PaneTransition.qml
index 1da4afb..d1814b5 100644
--- a/modules/controlcenter/components/PaneTransition.qml
+++ b/modules/controlcenter/components/PaneTransition.qml
@@ -3,26 +3,17 @@ pragma ComponentBehavior: Bound
import qs.config
import QtQuick
-// Reusable pane transition animation component
-// Provides standard fade-out/scale-down → update → fade-in/scale-up animation
-// Used when switching between detail/settings views in panes
SequentialAnimation {
id: root
- // The Loader element to animate
required property Item target
-
- // Optional list of PropertyActions to execute during the transition
- // These typically update the component being displayed
property list<PropertyAction> propertyActions
- // Animation parameters (with sensible defaults)
property real scaleFrom: 1.0
property real scaleTo: 0.8
property real opacityFrom: 1.0
property real opacityTo: 0.0
- // Fade out and scale down
ParallelAnimation {
NumberAnimation {
target: root.target
@@ -45,8 +36,6 @@ SequentialAnimation {
}
}
- // Execute property actions (component switching, state updates, etc.)
- // This is where the component change happens while invisible
ScriptAction {
script: {
for (let i = 0; i < root.propertyActions.length; i++) {
@@ -58,7 +47,6 @@ SequentialAnimation {
}
}
- // Fade in and scale up
ParallelAnimation {
NumberAnimation {
target: root.target
diff --git a/modules/controlcenter/components/SplitPaneLayout.qml b/modules/controlcenter/components/SplitPaneLayout.qml
index 7bd7db0..8b4f0d9 100644
--- a/modules/controlcenter/components/SplitPaneLayout.qml
+++ b/modules/controlcenter/components/SplitPaneLayout.qml
@@ -15,19 +15,14 @@ RowLayout {
property Component leftContent: null
property Component rightContent: null
- // Left pane configuration
property real leftWidthRatio: 0.4
property int leftMinimumWidth: 420
property var leftLoaderProperties: ({})
-
- // Right pane configuration
property var rightLoaderProperties: ({})
- // Expose loaders for customization (access via splitLayout.leftLoader or splitLayout.rightLoader)
property alias leftLoader: leftLoader
property alias rightLoader: rightLoader
- // Left pane
Item {
id: leftPane
@@ -57,7 +52,6 @@ RowLayout {
asynchronous: true
sourceComponent: root.leftContent
- // Apply any additional properties from leftLoaderProperties
Component.onCompleted: {
for (const key in root.leftLoaderProperties) {
leftLoader[key] = root.leftLoaderProperties[key];
@@ -74,7 +68,6 @@ RowLayout {
}
}
- // Right pane
Item {
id: rightPane
@@ -101,7 +94,6 @@ RowLayout {
asynchronous: true
sourceComponent: root.rightContent
- // Apply any additional properties from rightLoaderProperties
Component.onCompleted: {
for (const key in root.rightLoaderProperties) {
rightLoader[key] = root.rightLoaderProperties[key];
diff --git a/modules/controlcenter/components/SplitPaneWithDetails.qml b/modules/controlcenter/components/SplitPaneWithDetails.qml
index 6af8c1a..e873923 100644
--- a/modules/controlcenter/components/SplitPaneWithDetails.qml
+++ b/modules/controlcenter/components/SplitPaneWithDetails.qml
@@ -19,7 +19,6 @@ Item {
property var activeItem: null
property var paneIdGenerator: function(item) { return item ? String(item) : ""; }
- // Optional: Additional component to overlay on top (e.g., password dialogs)
property Component overlayComponent: null
SplitPaneLayout {
@@ -82,7 +81,6 @@ Item {
}
}
- // Overlay component (e.g., password dialogs)
Loader {
id: overlayLoader