2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
chrox
5157a67ce2 code refactoring 2014-03-12 17:06:57 +08:00
chrox
0385374c07 code refactoring 2014-03-11 23:40:00 +08:00
Markismus
175721a185 UPDATE readerfrontlight.lua
Code is added to switch between Kobo Aura (Phoenix) and others.

`ReaderFrontLight`, `self.ges_events` and the `function ReaderFrontLight:onAdjust` are now different for Kobo Aura. This enables me to do a two-fingered-pan over approx 1/4 Screenheight to change from full on to full off.

The difference to the default implementation is that both the `rate` and the `msg` are omitted and the `steps` are different.

FURTHER ROOM FOR IMPROVEMENT: It would be an improvement to get a final message after the two-fingered-pan is done stating the achieved setting.

Signed-off-by: Markismus <zulde.zuldemans@gmail.com>
2014-03-11 15:04:01 +01:00
chrox
4a5c6cdf12 fix intensity field name in powerd 2014-01-07 10:21:05 +08:00
chrox
92b62c907a refactoring frontlight device to more generic power device 2014-01-04 21:38:07 +08:00
HW
2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
Paulo Matias
54636e9407 Add InputText:setText and avoid non-intuitive UI behavior after light toggle 2013-08-21 08:54:46 -03:00
Paulo Matias
81facc2ce9 Refactor min/max handling in BaseFrontLight; use getFrontlight() in ReaderFrontLight for consistency 2013-08-12 09:37:41 -03:00
Paulo Matias
3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 2013-08-12 02:13:28 -03:00
Paulo Matias
232d8cd74a Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns 2013-08-12 02:13:28 -03:00
Giorgio Micotti
cea353323e Initial light control widget; final fixes for kobo light 2013-08-05 23:06:26 +02:00
Giorgio Micotti
103133d216 Fix some dumb mistakes, toggle light now works 2013-08-02 11:08:36 +02:00
Qingping Hou
201e63b2b2 fix require error 2013-07-24 02:14:12 -04:00
Giorgio Micotti
70963a0ddc Merge branch 'master' of https://github.com/koreader/koreader 2013-07-23 19:41:16 +02:00
Giorgio Micotti
e4b8fc3266 NOT WORKING initial kobo light support. 2013-07-23 19:40:26 +02:00
Paulo Matias
f0b352b0e3 Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165) 2013-07-22 09:23:58 -03:00
chrox
313525e961 add cpath in reader.lua 2013-04-21 16:49:00 +08:00
chrox
a60cfc4e10 fix occasionally failed lipc invocation 2013-04-20 11:08:12 +08:00
chrox
598772562d bugfix: use ceil to keep index greater than or equal to 1 2013-04-15 14:11:57 +08:00
chrox
ed33937af2 add front light intensity adjustment by vertical two_finger_pan 2013-04-14 21:17:52 +08:00