Toxblh/MTMR

proposal; preset `mute` represents current status

xerc opened this issue · 0 comments

xerc commented

sound OFF show touchBarAudioOutputVolumeHighTemplateName
sound ON show touchBarAudioOutputMuteTemplateName

"mute": { _ in
let imageParameter = GeneralParameter.image(source: NSImage(named: NSImage.touchBarAudioOutputMuteTemplateName)!)
return (
item: .staticButton(title: ""),
actions: [
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_MUTE))
],
legacyAction: .none,
legacyLongAction: .none,
parameters: [.image: imageParameter]
)
},