add functioning theme picker and overhaul theming system

This commit is contained in:
lucy 2026-09-10 23:33:19 +02:00
commit 64a269816d
680 changed files with 6166 additions and 5969 deletions

View file

@ -2,31 +2,37 @@ pragma ComponentBehavior: Bound
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
import qs.settings
import "./schemes/base16-eva.js" as Colors
Singleton {
id: root
readonly property color accent: base0D
readonly property color rootBarColor: base00
readonly property color barBg: Qt.rgba(rootBarColor.r,rootBarColor.g,rootBarColor.b,Config.opacity)
readonly property color moduleBg: base02
readonly property color activeModuleBg: base02
readonly property color text: base05
readonly property color base00: Colors.colors.base00
readonly property color base01: Colors.colors.base01
readonly property color base02: Colors.colors.base02
readonly property color base03: Colors.colors.base03
readonly property color base04: Colors.colors.base04
readonly property color base05: Colors.colors.base05
readonly property color base06: Colors.colors.base06
readonly property color base07: Colors.colors.base07
readonly property color base08: Colors.colors.base08
readonly property color base09: Colors.colors.base09
readonly property color base0A: Colors.colors.base0A
readonly property color base0B: Colors.colors.base0B
readonly property color base0C: Colors.colors.base0C
readonly property color base0D: Colors.colors.base0D
readonly property color base0E: Colors.colors.base0E
readonly property color base0F: Colors.colors.base0F
id: root
property alias c: colors
FileView {
id: colorView
path: Qt.resolvedUrl(Quickshell.shellDir + "/schemes/" + Config.cfg.appearance.currentTheme + ".json")
onFileChanged: {
reload();
}
watchChanges: true
adapter: JsonAdapter {
id: colors
property string base00
property string base01
property string base02
property string base03
property string base04
property string base05
property string base06
property string base07
property string base08
property string base09
property string base0A
property string base0B
property string base0C
property string base0D
property string base0E
property string base0F
}
}
}