Skip to content

Commit

Permalink
Fix #76; battery module: incorrect use of .bg
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Jan 16, 2025
1 parent a420192 commit 8fa4534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flexprompt_modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ local function render_battery(args)
-- The "22;" defeats the color parsing that would normally generate
-- corresponding fg and bg colors even though only an explicit bg color
-- was provided (versus a usual {fg=x,bg=y} color table).
color = "22;" .. color.bg .. ";30"
local c = flexprompt.lookup_color(color)
color = "22;" .. c.bg .. ";30"
end

local segments = {}
Expand Down

0 comments on commit 8fa4534

Please sign in to comment.