From 60f74904530058bf8b1cc9a2ee3972093381b19d Mon Sep 17 00:00:00 2001 From: Thomas Friese Date: Fri, 7 Feb 2020 10:27:02 +0100 Subject: Make backgrounds theme-able Fixes visibility on light themes Affects widgets: - `batteryarc` - `brightnessarc` - `volumearc` - `volumebar` Fixes #109 --- volumebar-widget/volumebar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'volumebar-widget/volumebar.lua') diff --git a/volumebar-widget/volumebar.lua b/volumebar-widget/volumebar.lua index 18e0f40..827a3c0 100644 --- a/volumebar-widget/volumebar.lua +++ b/volumebar-widget/volumebar.lua @@ -28,6 +28,7 @@ local function worker(args) local main_color = args.main_color or beautiful.fg_normal local mute_color = args.mute_color or beautiful.fg_urgent + local bg_color = args.bg_color or '#ffffff11' local width = args.width or 50 local shape = args.shape or 'bar' local margins = args.margins or 10 @@ -41,7 +42,7 @@ local function worker(args) max_value = 1, forced_width = width, color = main_color, - background_color = '#ffffff11', + background_color = bg_color, shape = gears.shape[shape], margins = { top = margins, -- cgit v1.2.3