mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Flush the date/time and battery info to the right.
Because it looks nicer that way.
This commit is contained in:
parent
1dccc29c7d
commit
4945994516
@ -100,9 +100,10 @@ function DJVUReader:_drawReadingInfo()
|
|||||||
renderUtf8Text(fb.bb, 10, 15+6, face,
|
renderUtf8Text(fb.bb, 10, 15+6, face,
|
||||||
"M: "..
|
"M: "..
|
||||||
math.ceil( self.cache_current_memsize / 1024 ).."/"..math.ceil( self.cache_max_memsize / 1024 ).."k, "..
|
math.ceil( self.cache_current_memsize / 1024 ).."/"..math.ceil( self.cache_max_memsize / 1024 ).."k, "..
|
||||||
math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k, "..
|
math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k", true)
|
||||||
os.date("%a %d %b %Y %T")..
|
local txt = os.date("%a %d %b %Y %T").." ["..BatteryLevel().."]"
|
||||||
" ["..BatteryLevel().."]", true)
|
local w = sizeUtf8Text(0, G_width, face, txt, true).x
|
||||||
|
renderUtf8Text(fb.bb, width - w - 10, 15+6, face, txt, true)
|
||||||
renderUtf8Text(fb.bb, 10, 15+6+22, face,
|
renderUtf8Text(fb.bb, 10, 15+6+22, face,
|
||||||
"Gm:"..string.format("%.1f",self.globalgamma).." ["..tostring(page_gamma).."], "..
|
"Gm:"..string.format("%.1f",self.globalgamma).." ["..tostring(page_gamma).."], "..
|
||||||
tostring(page_width).."x"..tostring(page_height)..", "..
|
tostring(page_width).."x"..tostring(page_height)..", "..
|
||||||
|
Loading…
Reference in New Issue
Block a user