Merge pull request #443 from felipeagc/mute-background

Add mute_background color for pulsebar
This commit is contained in:
Luca CPZ 2020-11-27 12:21:54 +00:00 committed by GitHub
commit a071cc54b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -22,6 +22,7 @@ local function factory(args)
local pulsebar = {
colors = {
background = "#000000",
mute_background = "#000000",
mute = "#EB8F8F",
unmute = "#A4CE8A"
},
@ -104,10 +105,12 @@ local function factory(args)
pulsebar._mute = mute
pulsebar.tooltip:set_text ("[muted]")
pulsebar.bar.color = pulsebar.colors.mute
pulsebar.bar.background_color = pulsebar.colors.mute_background
else
pulsebar._mute = "no"
pulsebar.tooltip:set_text(string.format("%s %s: %s", pulsebar.devicetype, pulsebar.device, volu))
pulsebar.bar.color = pulsebar.colors.unmute
pulsebar.bar.background_color = pulsebar.colors.background
end
settings()