summaryrefslogtreecommitdiff
path: root/modules/controlcenter/appearance/sections/ThemeModeSection.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-19 22:18:10 -0500
committerATMDA <atdma2600@gmail.com>2025-11-19 22:18:10 -0500
commitbf3a1781d12271a7edb9ead26eb59740f87877fd (patch)
tree9e4291b5386cdf4905e1c60970e08d7cf85ac9c1 /modules/controlcenter/appearance/sections/ThemeModeSection.qml
parentrefactor: replaced input fields with SliderInput components (diff)
downloadcaelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.gz
caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.bz2
caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.zip
refactor: reorganized AppearancePane sections into dedicated components
Diffstat (limited to 'modules/controlcenter/appearance/sections/ThemeModeSection.qml')
-rw-r--r--modules/controlcenter/appearance/sections/ThemeModeSection.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/controlcenter/appearance/sections/ThemeModeSection.qml b/modules/controlcenter/appearance/sections/ThemeModeSection.qml
new file mode 100644
index 0000000..c136437
--- /dev/null
+++ b/modules/controlcenter/appearance/sections/ThemeModeSection.qml
@@ -0,0 +1,24 @@
+pragma ComponentBehavior: Bound
+
+import ".."
+import qs.components
+import qs.components.controls
+import qs.components.containers
+import qs.services
+import qs.config
+import QtQuick
+
+CollapsibleSection {
+ title: qsTr("Theme mode")
+ description: qsTr("Light or dark theme")
+ showBackground: true
+
+ SwitchRow {
+ label: qsTr("Dark mode")
+ checked: !Colours.currentLight
+ onToggled: checked => {
+ Colours.setMode(checked ? "dark" : "light");
+ }
+ }
+}
+