summaryrefslogtreecommitdiff
path: root/modules/controlcenter/components
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-19 21:07:19 -0500
committerATMDA <atdma2600@gmail.com>2025-11-19 21:07:19 -0500
commit978a3f430226ae6cead3284329b4dcb309e979ee (patch)
tree716c94756a86320eddd07c37e2651b5fb9709bf5 /modules/controlcenter/components
parentrefactor: ToggleButton Tooltips and DeviceList (diff)
downloadcaelestia-shell-978a3f430226ae6cead3284329b4dcb309e979ee.tar.gz
caelestia-shell-978a3f430226ae6cead3284329b4dcb309e979ee.tar.bz2
caelestia-shell-978a3f430226ae6cead3284329b4dcb309e979ee.zip
cleanup: removed comments
Diffstat (limited to '')
-rw-r--r--modules/controlcenter/components/DeviceDetails.qml32
-rw-r--r--modules/controlcenter/components/DeviceList.qml34
-rw-r--r--modules/controlcenter/components/SettingsHeader.qml21
-rw-r--r--modules/controlcenter/components/SplitPaneWithDetails.qml35
4 files changed, 0 insertions, 122 deletions
diff --git a/modules/controlcenter/components/DeviceDetails.qml b/modules/controlcenter/components/DeviceDetails.qml
index eef0aae..768e77a 100644
--- a/modules/controlcenter/components/DeviceDetails.qml
+++ b/modules/controlcenter/components/DeviceDetails.qml
@@ -9,38 +9,6 @@ import qs.config
import QtQuick
import QtQuick.Layouts
-/**
- * DeviceDetails
- *
- * A reusable base component for displaying device/network details with a standardized
- * structure. Provides a header, connection status section, and flexible sections for
- * device-specific information.
- *
- * This component eliminates duplication across WirelessDetails, EthernetDetails, and Bluetooth Details
- * by providing a common structure while allowing full customization of sections.
- *
- * Usage:
- * ```qml
- * DeviceDetails {
- * session: root.session
- * device: session.network.active
- * headerComponent: Component {
- * ConnectionHeader {
- * icon: "wifi"
- * title: device?.ssid ?? ""
- * }
- * }
- * sections: [
- * Component {
- * // Connection status section
- * },
- * Component {
- * // Properties section
- * }
- * ]
- * }
- * ```
- */
Item {
id: root
diff --git a/modules/controlcenter/components/DeviceList.qml b/modules/controlcenter/components/DeviceList.qml
index bf7126f..a6821d8 100644
--- a/modules/controlcenter/components/DeviceList.qml
+++ b/modules/controlcenter/components/DeviceList.qml
@@ -10,40 +10,6 @@ import Quickshell
import QtQuick
import QtQuick.Layouts
-/**
- * DeviceList
- *
- * A reusable base component for displaying lists of devices/networks with a standardized
- * structure. Provides a header with action buttons, title/subtitle, and a scrollable list
- * with customizable delegates.
- *
- * This component eliminates duplication across WirelessList, EthernetList, and Bluetooth DeviceList
- * by providing a common structure while allowing full customization of headers and delegates.
- *
- * Usage:
- * ```qml
- * DeviceList {
- * session: root.session
- * title: qsTr("Networks (%1)").arg(Nmcli.networks.length)
- * description: qsTr("All available WiFi networks")
- * model: ScriptModel {
- * values: [...Nmcli.networks].sort(...)
- * }
- * activeItem: session.network.active
- * onItemSelected: (item) => {
- * session.network.active = item;
- * }
- * headerComponent: Component {
- * RowLayout {
- * // Custom header buttons
- * }
- * }
- * delegate: Component {
- * // Custom delegate for each item
- * }
- * }
- * ```
- */
ColumnLayout {
id: root
diff --git a/modules/controlcenter/components/SettingsHeader.qml b/modules/controlcenter/components/SettingsHeader.qml
index 9a77968..c1ba148 100644
--- a/modules/controlcenter/components/SettingsHeader.qml
+++ b/modules/controlcenter/components/SettingsHeader.qml
@@ -5,31 +5,10 @@ import qs.config
import QtQuick
import QtQuick.Layouts
-/**
- * SettingsHeader
- *
- * Reusable header component for settings panes. Displays a large icon and title
- * in a consistent format across all settings screens.
- *
- * Usage:
- * ```qml
- * SettingsHeader {
- * icon: "router"
- * title: qsTr("Network Settings")
- * }
- * ```
- */
Item {
id: root
- /**
- * Material icon name to display
- */
required property string icon
-
- /**
- * Title text to display
- */
required property string title
Layout.fillWidth: true
diff --git a/modules/controlcenter/components/SplitPaneWithDetails.qml b/modules/controlcenter/components/SplitPaneWithDetails.qml
index e139aca..6af8c1a 100644
--- a/modules/controlcenter/components/SplitPaneWithDetails.qml
+++ b/modules/controlcenter/components/SplitPaneWithDetails.qml
@@ -9,41 +9,6 @@ import Quickshell.Widgets
import QtQuick
import QtQuick.Layouts
-/**
- * SplitPaneWithDetails
- *
- * A reusable component that provides a split-pane layout with a list on the left
- * and a details/settings view on the right. The right pane automatically switches
- * between details and settings views based on whether an item is selected.
- *
- * This component eliminates duplication across WirelessPane, EthernetPane, and BtPane
- * by providing a standardized pattern for split-pane layouts with transition animations.
- *
- * Usage:
- * ```qml
- * SplitPaneWithDetails {
- * activeItem: root.session.network.active
- * leftContent: Component {
- * WirelessList {
- * session: root.session
- * }
- * }
- * rightDetailsComponent: Component {
- * WirelessDetails {
- * session: root.session
- * }
- * }
- * rightSettingsComponent: Component {
- * StyledFlickable {
- * WirelessSettings {
- * session: root.session
- * }
- * }
- * }
- * paneIdGenerator: (item) => item ? (item.ssid || item.bssid || "") : ""
- * }
- * ```
- */
Item {
id: root