From fe350957ddfce7a1d81fd59f9603c31371f36eb4 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 10 Sep 2022 21:52:40 -0700 Subject: [PATCH] Fixed a few errors --- modules/battery/widget.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/battery/widget.lua b/modules/battery/widget.lua index be0d860..def1478 100755 --- a/modules/battery/widget.lua +++ b/modules/battery/widget.lua @@ -112,7 +112,7 @@ widget.update = function(stdout) timeout = 5, ignore_suspend = true, - border_color = beautiful.color.widget.danger, + border_color = beautiful.color.battery.danger, preset = beautiful.notification_templates.bottom_right }) break @@ -131,11 +131,11 @@ widget.update = function(stdout) widget.arc.value = batpec if batpec > 60 then - widget.progressbar.color = beautiful.color.widget.good + widget.progressbar.color = beautiful.color.battery.good elseif batpec > 40 then - widget.progressbar.color = beautiful.color.widget.low + widget.progressbar.color = beautiful.color.battery.low elseif batpec <= 40 then - widget.progressbar.color = beautiful.color.widget.danger + widget.progressbar.color = beautiful.color.battery.danger end @@ -157,9 +157,9 @@ widget.update = function(stdout) widget.icon.image = widget.image_path if (not discharging) and (batpec > 90) then - widget.progressbar.border_color = beautiful.color.widget.good + widget.progressbar.border_color = beautiful.color.battery.good elseif (discharging) and (batpec <= 25) then - widget.progressbar.border_color = beautiful.color.widget.danger + widget.progressbar.border_color = beautiful.color.battery.danger else widget.progressbar.border_color = beautiful.color.bar.active end