move NiriIpc and PowerProfileService singletons to services/
This commit is contained in:
parent
63e93f5de0
commit
0160e4a1fb
10 changed files with 18 additions and 19 deletions
|
|
@ -8,12 +8,12 @@ import "../services" as S
|
|||
M.BarSection {
|
||||
id: root
|
||||
spacing: S.Theme.moduleSpacing
|
||||
tooltip: M.NiriIpc.focusedAppId ? M.NiriIpc.focusedAppId + "\n" + M.NiriIpc.focusedTitle : M.NiriIpc.focusedTitle
|
||||
tooltip: S.NiriIpc.focusedAppId ? S.NiriIpc.focusedAppId + "\n" + S.NiriIpc.focusedTitle : S.NiriIpc.focusedTitle
|
||||
|
||||
readonly property string _iconSource: {
|
||||
if (!M.NiriIpc.focusedAppId)
|
||||
if (!S.NiriIpc.focusedAppId)
|
||||
return "";
|
||||
const entry = DesktopEntries.heuristicLookup(M.NiriIpc.focusedAppId);
|
||||
const entry = DesktopEntries.heuristicLookup(S.NiriIpc.focusedAppId);
|
||||
return entry ? Quickshell.iconPath(entry.icon) : "";
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ M.BarSection {
|
|||
|
||||
M.BarLabel {
|
||||
id: _label
|
||||
label: M.NiriIpc.focusedTitle
|
||||
label: S.NiriIpc.focusedTitle
|
||||
color: root.accentColor
|
||||
elide: Text.ElideRight
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue