Make status bar prefix compact items a bit more compact (#7153)

For battery level, show icon only
Reduce separator between items to " " from "  "
reviewable/pr7155/r1
Jason Benwell 3 years ago committed by GitHub
parent 8bf829da0a
commit cd6e2d9975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,7 +176,11 @@ local footerTextGeneratorMap = {
prefix = ""
end
end
return BD.wrap(prefix) .. batt_lvl .. "%"
if symbol_type == "compact_items" then
return BD.wrap(prefix)
else
return BD.wrap(prefix) .. batt_lvl .. "%"
end
else
return BD.wrap(prefix) .. " " .. (powerd:isCharging() and "+" or "") .. batt_lvl .. "%"
end
@ -1749,6 +1753,9 @@ function ReaderFooter:genFooterText() end
function ReaderFooter:genAllFooterText()
local info = {}
local separator = " "
if self.settings.item_prefix == "compact_items" then
separator = " "
end
if self.settings.items_separator == "bar" or self.settings.items_separator == nil then
separator = " | "
elseif self.settings.items_separator == "bullet" then

Loading…
Cancel
Save