mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add: status bar in reading menu & font.lua
* Since fontchooser is replaced by selectmenu, it is no longer needed. So I rewrite it into font.lua module which can cache faces that shared among all UIs. * add progressBar method in graphics.lua to draw reading progress. * add reading progress information in reading menu. It is just a demo. Should be clean up in next release when the real reading menu is out. :)
This commit is contained in:
@@ -103,7 +103,6 @@ else
|
||||
input.open("/dev/input/event2")
|
||||
set_k3_keycodes()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if optarg["G"] ~= nil then
|
||||
@@ -120,7 +119,7 @@ origin_rotation_mode = Screen.cur_rotation_mode
|
||||
reader_settings = DocSettings:open(".reader")
|
||||
r_cfont = reader_settings:readsetting("cfont")
|
||||
if r_cfont ~=nil then
|
||||
FontChooser.cfont = r_cfont
|
||||
Font.cfont = r_cfont
|
||||
end
|
||||
|
||||
-- initialize global settings shared among all readers
|
||||
@@ -156,7 +155,7 @@ end
|
||||
|
||||
|
||||
-- save reader settings
|
||||
reader_settings:savesetting("cfont", FontChooser.cfont)
|
||||
reader_settings:savesetting("cfont", Font.cfont)
|
||||
reader_settings:close()
|
||||
|
||||
-- @TODO dirty workaround, find a way to force native system poll
|
||||
|
||||
Reference in New Issue
Block a user