Commit Graph

47 Commits

Author SHA1 Message Date
Qingping Hou d4254e5266 fix: unschedule auto refresh footer task on document close 2016-02-29 23:13:52 -08:00
Qingping Hou 11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 2016-02-14 21:54:17 -08:00
chrox 41d3642467 add auto refresh time option for status bar, close #1769 2016-02-04 11:28:50 +08:00
Qingping Hou e19f73bdba style(util): rename tablelength to tableSize 2016-01-31 14:58:05 -08:00
Qingping Hou 55234ef899 fix: read stats crashes pdf/djvu documents 2015-12-25 20:57:11 -08:00
Qingping Hou ffd438de18 fix(ReaderFooter:getDataFromStatistics): return na if book has no stats history 2015-12-22 22:35:46 -08:00
Alex Pletnev 6bf9d75807 #1750 TB feature/statistics issue
Change time to read book formula to: ((total_read_time / read_pages) * (all_pages - current_page))
2015-12-21 08:49:03 +02:00
Alex Pletnev ce4e32e01c #1723 Add time to read into the status bar
Add new statuses:
TB - book time to read
TC - chapter time to read

Fix backward compatible in statistics plugin
2015-11-27 17:13:01 +02:00
NiLuJe ce5f66ccbc Prefix battery percentage w/ a + when charging.
Adresses comments on MR.
Add a comment explaining the magic behind CRe's charging icon when using
CRE's full (top) status bar.
2015-09-09 17:37:35 +02:00
NiLuJe 50dbf6b581 Switch a few widgets to ui refresh modes
More closely matches native behavior on REAGL devices.
Closing those widgets should still trigger a partial refresh though,
because we usually get back to the reader, and text, so we want REAGL
;).
2015-04-26 20:07:17 +02:00
chrox 0788709f26 Popup goto dialog only when holding on visible status bar 2015-03-28 22:04:12 +08:00
chrox ff3a42e503 typo fix of #1462 2015-03-20 21:22:14 +08:00
chrox 3224eb1797 fix inproper variable name for pages left 2015-03-12 15:51:59 +08:00
chrox 35abf4bfaf move minibar configurations to reader menu
and fix #1446 by adding progress percentage in minibar.
2015-03-12 14:35:49 +08:00
chrox eea6f97796 fix #1319 2014-12-02 10:35:55 +08:00
Hans-Werner Hilse 745e3837e0 updating the screen in tap handler of readerfooter is not needed
Was a hack anyway, c.f.
https://github.com/koreader/koreader/pull/1306#discussion_r21057461

Seems to be not needed anymore. If some areas are now not refreshed
anymore, that ought to be fixed in another place.

This also gets rid of redundant screen flashes.
2014-11-30 18:38:02 +00:00
Hans-Werner Hilse 82c26b1f18 adapt widgets to new refresh/repaint API 2014-11-30 00:17:50 +00:00
Hans-Werner Hilse 22697adf20 switch from scaleByDPI() to scaleBySize() 2014-11-23 12:13:32 +00:00
chrox a65dcb4c0d find the finest toc ticks by sorting out the largest one 2014-11-18 16:50:37 +08:00
chrox 3e7ca5706e fix #1121 2014-11-17 18:21:47 +08:00
NiLuJe 1063ee74e5 Fix flipping mode refreshes
Don't do regional footer refreshes when we're in flipping mode.
There's probably a more elegant/correct way to handle this, but this
does the job ;).
Fix #1140
2014-11-12 16:51:52 +01:00
NiLuJe 041f11cba0 Tweak some comments 2014-11-11 02:42:07 +01:00
NiLuJe e2e99e5d99 make RedaerFooter updates regional 2014-11-10 21:08:34 +01:00
Hans-Werner Hilse 3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
2014-11-02 21:19:04 +01:00
Hans-Werner Hilse 5982e24d57 unify color specification
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
2014-10-24 13:48:42 +02:00
chrox 0a863f07c7 show 50 ticks on the mini progress bar at most 2014-10-20 22:17:53 +08:00
chrox b09bb87d4e refactoring readertoc and readerfooter
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
Ebrehem 44ecf74ba3 Update readerfooter.lua 2014-09-27 12:56:47 +02:00
NiLuJe e2efb230a6 Make the geometry of the minibar user-configurable
As well as the width of the toc notches
Lower the default value of the container size a bit to avoid eating into
the last line on small borders setup (I checked on 167 & 212 DPI
devices, Feel free to revert to the previous value (19) if that causes
trouble).
2014-08-11 05:09:45 +02:00
WS64 844ae29fe5 Send TOC parameters to progressbar 2014-08-09 08:59:55 +02:00
WS64 969734931b progressbar can be turned off in mini bar 2014-08-07 20:22:28 +02:00
chrox 51ba4f987a fix no battery info on minibar for PDF documents
This should fix #757.
2014-08-05 12:18:00 +08:00
chrox beaf768250 recalculate footer sizes when document page count is updated 2014-07-22 21:55:31 +08:00
chrox ce266bffb8 add minibar height into overlap height 2014-07-17 21:27:35 +08:00
WS64 af400bbe1e Added battery info to mini bar 2014-07-04 14:42:36 +02:00
WS64 79f1b027f0 Minor optimizings (elseif) 2014-07-03 18:15:08 +02:00
WS64 0429325c5f removed "next chapter" for PDFs
Should actually also be done for EPUBs without TOC, but somehow I can't get it to work
2014-07-02 14:46:23 +02:00
WS64 00c050f279 Update readerfooter.lua 2014-07-02 10:43:24 +02:00
WS64 c50a0f701b Update readerfooter.lua 2014-07-02 10:32:17 +02:00
WS64 ec16a3f745 Update readerfooter.lua
Add "pages left to next chapter" to minibar
2014-07-02 07:06:43 +02:00
chrox 1fd45c3903 add tap zone configuration for the minibar 2014-06-08 19:07:14 +08:00
chrox 53a41c0ce8 adapt reader footer for small screen 2014-06-05 12:50:33 +08:00
chrox 1d292f16a9 remove full screen option in koptoption
since we can now switch progress bar status simply by tap
2014-05-19 14:23:36 +08:00
chrox 6938b54346 enlarge touch zone for readerfooter 2014-05-18 23:39:32 +08:00
chrox eeb81f1c39 persistent reader footer mode 2014-05-01 18:51:48 +08:00
chrox 47f986941f tap on reader footer to hide footer 2014-04-04 21:20:26 +08:00
Qingping Hou 4b357c1466 move reader code into frontend/apps/reader
it makes more sense to completely separate the UI framework and
application code

also move frontend/ui/configurable.lua to frontend/configurable.lua
2014-04-02 17:02:01 -04:00