2026-01-17 20:40:19 +01:00
|
|
|
import QtQuick
|
|
|
|
|
import Quickshell.Io
|
2026-01-19 12:45:35 +01:00
|
|
|
import qs.settings
|
2026-01-23 20:12:42 +01:00
|
|
|
import QtQuick.Dialogs
|
2026-02-06 14:29:25 +01:00
|
|
|
import Quickshell
|
2026-01-17 20:40:19 +01:00
|
|
|
|
2026-01-18 01:29:27 +01:00
|
|
|
Item {
|
2026-01-23 20:12:42 +01:00
|
|
|
FontDialog {
|
|
|
|
|
id: fontPicker
|
|
|
|
|
flags: FontDialog.NoButtons
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-18 01:29:27 +01:00
|
|
|
IpcHandler {
|
|
|
|
|
id: ipcHandler
|
|
|
|
|
target: "settings"
|
2026-01-19 13:44:25 +01:00
|
|
|
function setFont(newFont: string): void {
|
2026-01-19 13:48:00 +01:00
|
|
|
Settings.config.font = newFont;
|
|
|
|
|
}
|
|
|
|
|
function gen(toggle: bool): void {
|
|
|
|
|
Settings.config.generateScheme = toggle;
|
2026-01-19 13:44:25 +01:00
|
|
|
}
|
2026-02-06 14:29:25 +01:00
|
|
|
function reload(hard: bool): void {
|
|
|
|
|
Quickshell.reload(hard);
|
|
|
|
|
console.log("reloaded!");
|
|
|
|
|
}
|
2026-01-18 01:29:27 +01:00
|
|
|
}
|
2026-01-17 20:40:19 +01:00
|
|
|
}
|