add primitive shit for theme switching

This commit is contained in:
lucy 2026-09-09 18:48:35 +02:00
commit 143889683b
6 changed files with 111 additions and 20 deletions

View file

@ -114,11 +114,24 @@ Variants {
}
}
}
ThemeSwitcher {
z: 1
id: colorschemes
property bool shown: WidgetTracker.current === "colorschemes" && root.shown
visible: shown
focus: shown
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: Config.cfg.bar.floating ? Config.cfg.bar.height + 20 : Config.cfg.bar.height + 10
anchors.margins: 20
implicitHeight: 60
}
MouseArea {
id: dismisser
z: 0
anchors.fill: parent
acceptedButtons: Qt.LeftButton
acceptedButtons: Qt.AllButtons
onClicked: WidgetTracker.close()
}
}