plugin: rust-side modules + theme services with serde-typed config
This commit is contained in:
parent
a86e90e927
commit
f34f3f2f4e
95 changed files with 2477 additions and 1011 deletions
|
|
@ -2,10 +2,11 @@ import QtQuick
|
|||
import Quickshell
|
||||
import "." as M
|
||||
import "../services" as S
|
||||
import NovaStats as NS
|
||||
|
||||
M.BarModule {
|
||||
id: root
|
||||
active: S.Modules.idleInhibitor.enable
|
||||
active: NS.ModulesService.idleInhibitorEnable
|
||||
tooltip: {
|
||||
const parts = ["Idle inhibition: " + (S.IdleInhibitService.active ? "active" : "inactive")];
|
||||
if (S.IdleInhibitService.inhibitors)
|
||||
|
|
@ -23,7 +24,7 @@ M.BarModule {
|
|||
}
|
||||
|
||||
M.BarIcon {
|
||||
color: S.IdleInhibitService.active ? S.Theme.base09 : root.accentColor
|
||||
color: S.IdleInhibitService.active ? NS.ThemeService.base09 : root.accentColor
|
||||
icon: S.IdleInhibitService.active ? "\uF06E" : "\uF070"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue