mirror of https://github.com/lcpz/lain.git
Add mute_background color for pulsebar
This commit is contained in:
parent
33c0e0c236
commit
9756713905
|
@ -22,6 +22,7 @@ local function factory(args)
|
||||||
local pulsebar = {
|
local pulsebar = {
|
||||||
colors = {
|
colors = {
|
||||||
background = "#000000",
|
background = "#000000",
|
||||||
|
mute_background = "#000000",
|
||||||
mute = "#EB8F8F",
|
mute = "#EB8F8F",
|
||||||
unmute = "#A4CE8A"
|
unmute = "#A4CE8A"
|
||||||
},
|
},
|
||||||
|
@ -104,10 +105,12 @@ local function factory(args)
|
||||||
pulsebar._mute = mute
|
pulsebar._mute = mute
|
||||||
pulsebar.tooltip:set_text ("[muted]")
|
pulsebar.tooltip:set_text ("[muted]")
|
||||||
pulsebar.bar.color = pulsebar.colors.mute
|
pulsebar.bar.color = pulsebar.colors.mute
|
||||||
|
pulsebar.bar.background_color = pulsebar.colors.mute_background
|
||||||
else
|
else
|
||||||
pulsebar._mute = "no"
|
pulsebar._mute = "no"
|
||||||
pulsebar.tooltip:set_text(string.format("%s %s: %s", pulsebar.devicetype, pulsebar.device, volu))
|
pulsebar.tooltip:set_text(string.format("%s %s: %s", pulsebar.devicetype, pulsebar.device, volu))
|
||||||
pulsebar.bar.color = pulsebar.colors.unmute
|
pulsebar.bar.color = pulsebar.colors.unmute
|
||||||
|
pulsebar.bar.background_color = pulsebar.colors.background
|
||||||
end
|
end
|
||||||
|
|
||||||
settings()
|
settings()
|
||||||
|
|
Loading…
Reference in New Issue