Skip to content

Commit

Permalink
Status bar: major UI makeover (#11678)
Browse files Browse the repository at this point in the history
  • Loading branch information
Commodore64user committed May 21, 2024
1 parent 40814bf commit e859109
Show file tree
Hide file tree
Showing 3 changed files with 733 additions and 699 deletions.
13 changes: 8 additions & 5 deletions frontend/apps/reader/modules/readercoptlistener.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function ReaderCoptListener:getAltStatusBarMenu()
separator = true,
sub_item_table = {
{
text = _("About alternate status bar"),
text = _("About alt status bar"),
keep_menu_open = true,
callback = function()
UIManager:show(InfoMessage:new{
Expand Down Expand Up @@ -294,15 +294,18 @@ function ReaderCoptListener:getAltStatusBarMenu()
},
{
text_func = function()
local status = _("off")
local status = _("Battery status")
if self.battery == 1 then
if self.battery_percent == 1 then
status = _("percentage")
status = _("Battery status: percentage")
else
status = _("icon")
status = _("Battery status: icon")
end
end
return T(_("Battery status: %1"), status)
return status
end,
checked_func = function()
return self.battery == 1
end,
sub_item_table = {
{
Expand Down
Loading

0 comments on commit e859109

Please sign in to comment.