make ipc handler to reload qs
This commit is contained in:
parent
eb93ad8d2c
commit
d96cb88df2
4 changed files with 6 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ Singleton {
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
onAdapterUpdated: reload()
|
onAdapterUpdated: reload()
|
||||||
onAdapterChanged: reload()
|
onAdapterChanged: reload()
|
||||||
blockLoading: true // colors resolved before first paint, no flash of defaults
|
blockLoading: true
|
||||||
property alias base00: palette.base00
|
property alias base00: palette.base00
|
||||||
property alias base01: palette.base01
|
property alias base01: palette.base01
|
||||||
property alias base02: palette.base02
|
property alias base02: palette.base02
|
||||||
|
|
@ -51,7 +51,6 @@ Singleton {
|
||||||
|
|
||||||
JsonAdapter {
|
JsonAdapter {
|
||||||
id: palette
|
id: palette
|
||||||
// strings, not colors — QML coerces "#rrggbb" -> color at the readonly props above
|
|
||||||
property string base00
|
property string base00
|
||||||
property string base01
|
property string base01
|
||||||
property string base02
|
property string base02
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ IpcHandler {
|
||||||
function floating(toggle: bool) {
|
function floating(toggle: bool) {
|
||||||
Config.floating = toggle
|
Config.floating = toggle
|
||||||
}
|
}
|
||||||
|
function reload(hard: bool) {
|
||||||
|
Quickshell.reload(hard)
|
||||||
|
}
|
||||||
|
|
||||||
function setWall(newWall: string) {
|
function setWall(newWall: string) {
|
||||||
if (newWall.startsWith("/")) {
|
if (newWall.startsWith("/")) {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
font.family: "Material Symbols Rounded"
|
font.family: "Material Symbols Rounded"
|
||||||
color: Colors.base07
|
color: Colors.base05
|
||||||
font.pixelSize: Config.iconSize
|
font.pixelSize: Config.iconSize
|
||||||
property bool fill: true
|
property bool fill: true
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ import qs.settings
|
||||||
Text {
|
Text {
|
||||||
font.family: Config.font
|
font.family: Config.font
|
||||||
font.pixelSize: Config.fontSize
|
font.pixelSize: Config.fontSize
|
||||||
color: Colors.base07
|
color: Colors.base05
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue