Very basic theming support
This commit is contained in:
parent
b08944988d
commit
821b4e8cad
6 changed files with 309 additions and 58 deletions
27
Services/Settings.qml
Normal file
27
Services/Settings.qml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Services
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property string shellName: "Noctalia"
|
||||
property string settingsDir: Quickshell.env("NOCTALIA_SETTINGS_DIR")
|
||||
|| (Quickshell.env("XDG_CONFIG_HOME")
|
||||
|| Quickshell.env(
|
||||
"HOME") + "/.config") + "/" + shellName + "/"
|
||||
property string settingsFile: Quickshell.env("NOCTALIA_SETTINGS_FILE")
|
||||
|| (settingsDir + "Settings.json")
|
||||
property string themeFile: Quickshell.env("NOCTALIA_THEME_FILE")
|
||||
|| (settingsDir + "Theme.json")
|
||||
|
||||
Item {
|
||||
Component.onCompleted: {
|
||||
// ensure settings dir
|
||||
Quickshell.execDetached(["mkdir", "-p", settingsDir])
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue