summaryrefslogtreecommitdiff
path: root/components/controls/SwitchRow.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-12 16:06:16 -0500
committerATMDA <atdma2600@gmail.com>2025-11-12 16:06:16 -0500
commite21a1519b0b59da0847f8c215201720fef3d854e (patch)
treeb8e1644c6b731c62a5816dc2beaea93ac0b7dd5d /components/controls/SwitchRow.qml
parentcontrolcenter: refactoring into components (diff)
downloadcaelestia-shell-e21a1519b0b59da0847f8c215201720fef3d854e.tar.gz
caelestia-shell-e21a1519b0b59da0847f8c215201720fef3d854e.tar.bz2
caelestia-shell-e21a1519b0b59da0847f8c215201720fef3d854e.zip
controlcenter: refactoring into components
Diffstat (limited to 'components/controls/SwitchRow.qml')
-rw-r--r--components/controls/SwitchRow.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/controls/SwitchRow.qml b/components/controls/SwitchRow.qml
index a486ee2..0ec7aa5 100644
--- a/components/controls/SwitchRow.qml
+++ b/components/controls/SwitchRow.qml
@@ -11,6 +11,7 @@ StyledRect {
required property string label
required property bool checked
+ property bool enabled: true
property var onToggled: function(checked) {}
Layout.fillWidth: true
@@ -38,6 +39,7 @@ StyledRect {
StyledSwitch {
checked: root.checked
+ enabled: root.enabled
onToggled: {
root.onToggled(checked);
}