add function to change font on the fly
This commit is contained in:
parent
eab6135f93
commit
90b6470bc4
@ -6,14 +6,17 @@ Item {
|
||||
IpcHandler {
|
||||
id: ipcHandler
|
||||
target: "settings"
|
||||
property bool generate: Settings.config.generateScheme
|
||||
function setWall(newWall: string): void {
|
||||
console.log(Settings.config.generateScheme);
|
||||
Settings.config.currentWall = newWall;
|
||||
kittyKiller.exec(kittyKiller.command);
|
||||
if (generate) {
|
||||
wallustRunner.exec(wallustRunner.command);
|
||||
kittyKiller.startDetached();
|
||||
if (Settings.config.generateScheme === true) {
|
||||
wallustRunner.startDetached();
|
||||
}
|
||||
}
|
||||
function setFont(newFont: string): void {
|
||||
Settings.config.font = newFont
|
||||
}
|
||||
}
|
||||
Process {
|
||||
id: wallustRunner
|
||||
|
||||
@ -5,6 +5,7 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
|
||||
id: settings
|
||||
property alias config: settingsAdapter
|
||||
onConfigChanged: {
|
||||
@ -15,6 +16,7 @@ Singleton {
|
||||
id: settingsView
|
||||
|
||||
onAdapterUpdated: writeAdapter()
|
||||
onFileChanged: reload()
|
||||
|
||||
path: "/home/lucy/.config/quickshell/settings/config.json"
|
||||
watchChanges: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user