ReaderBookmark: indicate current page with dimmed page numbers after current (#9872)

This commit is contained in:
hius07
2022-12-09 10:08:14 +02:00
committed by GitHub
parent e026598f72
commit 05cd59ebe5
3 changed files with 201 additions and 266 deletions

View File

@@ -196,7 +196,7 @@ function MenuItem:init()
text = mandatory,
face = self.info_face,
bold = self.bold,
fgcolor = self.dim and Blitbuffer.COLOR_DARK_GRAY or nil,
fgcolor = self.mandatory_dim and Blitbuffer.COLOR_DARK_GRAY or nil,
}
local mandatory_w = mandatory_widget:getWidth()
@@ -1060,6 +1060,7 @@ function Menu:updateItems(select_number)
bidi_wrap_func = self.item_table[i].bidi_wrap_func,
mandatory = self.item_table[i].mandatory,
mandatory_func = self.item_table[i].mandatory_func,
mandatory_dim = self.item_table[i].mandatory_dim or self.item_table[i].dim,
bold = self.item_table.current == i or self.item_table[i].bold == true,
dim = self.item_table[i].dim,
font = "smallinfofont",