Standardize shell UI theme tokens
This commit is contained in:
@@ -3,6 +3,8 @@ import QtQml.Models
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
import qs.Commons as NoctaliaCommons
|
||||
|
||||
import "plugins/bar"
|
||||
import "services"
|
||||
|
||||
@@ -598,18 +600,23 @@ ShellRoot {
|
||||
try { colorsRaw = Qt.atob(String(colorsB64 || "")) } catch (e) { colorsRaw = "" }
|
||||
try { shellRaw = Qt.atob(String(shellB64 || "")) } catch (e2) { shellRaw = "" }
|
||||
NoctaliaCommons.Color.resumeThemeReloads()
|
||||
NoctaliaCommons.Style.resumeThemeReloads()
|
||||
NoctaliaCommons.Color.loadColors(colorsRaw)
|
||||
NoctaliaCommons.Color.loadShell(shellRaw)
|
||||
NoctaliaCommons.Style.loadShell(shellRaw)
|
||||
NoctaliaCommons.Style.scheduleRefresh()
|
||||
return "ok"
|
||||
}
|
||||
|
||||
function suspendThemeReloads(): string {
|
||||
NoctaliaCommons.Color.suspendThemeReloads()
|
||||
NoctaliaCommons.Style.suspendThemeReloads()
|
||||
return "ok"
|
||||
}
|
||||
|
||||
function reloadTheme(): string {
|
||||
NoctaliaCommons.Color.reloadTheme()
|
||||
NoctaliaCommons.Style.reloadTheme()
|
||||
return "ok"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user