mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Highlights: quicker Style and Note marker dialogs (#13223)
This commit is contained in:
@@ -66,10 +66,19 @@ local Button = InputContainer:extend{
|
||||
text_font_face = "cfont",
|
||||
text_font_size = 20,
|
||||
text_font_bold = true,
|
||||
menu_style = nil, -- see init()
|
||||
vsync = nil, -- when "flash_ui" is enabled, allow bundling the highlight with the callback, and fence that batch away from the unhighlight. Avoid delays when callback requires a "partial" on Kobo Mk. 7, c.f., ffi/framebuffer_mxcfb for more details.
|
||||
}
|
||||
|
||||
function Button:init()
|
||||
if self.menu_style then
|
||||
self.align = "left"
|
||||
self.padding_h = Size.padding.large
|
||||
self.text_font_face = "smallinfofont"
|
||||
self.text_font_size = 22
|
||||
self.text_font_bold = false
|
||||
end
|
||||
|
||||
-- Prefer an optional text_func over text
|
||||
if self.text_func and type(self.text_func) == "function" then
|
||||
self.text = self.text_func()
|
||||
|
||||
Reference in New Issue
Block a user