quickshell/Colors.qml

38 lines
1 KiB
QML

pragma ComponentBehavior: Bound
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
import qs.settings
Singleton {
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
}
}
}