nosignal-shell/modules/controlcenter/appearance/sections/ThemeModeSection.qml
2 * r + 2 * t be3da5a114 fix: control center
Tbh idk what the issue was, but the entire implementation is extremely
scuffed and we need to remake it completely
2026-03-22 01:12:57 +11:00

23 lines
497 B
QML

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");
}
}
}