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
|
|
@ -3,11 +3,12 @@ import Quickshell
|
|||
import "." as M
|
||||
import "../services" as S
|
||||
import "../applets" as C
|
||||
import NovaStats as NS
|
||||
|
||||
M.BarModule {
|
||||
id: root
|
||||
active: S.Modules.volume.enable
|
||||
spacing: S.Theme.moduleSpacing
|
||||
active: NS.ModulesService.volumeEnable
|
||||
spacing: NS.ThemeService.moduleSpacing
|
||||
tooltip: "Volume: " + Math.round(volume * 100) + "%" + (muted ? " (muted)" : "")
|
||||
panelNamespace: "nova-volume"
|
||||
panelContentWidth: 220
|
||||
|
|
@ -21,7 +22,7 @@ M.BarModule {
|
|||
readonly property real volume: S.PipewireService.volume
|
||||
readonly property bool muted: S.PipewireService.muted
|
||||
readonly property string _volumeIcon: muted ? "\uF026" : (volume > 0.5 ? "\uF028" : (volume > 0 ? "\uF027" : "\uF026"))
|
||||
readonly property color _volumeColor: muted ? S.Theme.base04 : root.accentColor
|
||||
readonly property color _volumeColor: muted ? NS.ThemeService.base04 : root.accentColor
|
||||
|
||||
property bool _volumeInit: false
|
||||
property bool _mutedInit: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue