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

64 Commits

Author SHA1 Message Date
Qingping Hou
f51285e89b revert code that enables screensaver on kindle by default 2017-04-11 11:47:33 +02:00
Robert
59873ae293 Screensaver option on Kindle devices (#2734)
* Screensaver on Kindle devices
2017-04-08 23:21:03 +02:00
Hzj_jie
ea2de9638b LuaSettings:wrap() / LuaSettings:child() function to create an LuaSettings to represent a sub table of an existing one (#2685) 2017-03-28 15:10:36 -07:00
Frans de Jonge
bdbda9b405 ReaderMenu: fix MenuSorter-related typo (#2689)
Fixes #2688
2017-03-28 13:18:42 -07:00
Frans de Jonge
8b7e18a7d7 MenuSorter: resolve review comments
* simplify user config loop
* simplify unit test for Travis memory use
* remove unused util variable
2017-03-26 11:12:44 +02:00
Frans de Jonge
ddf590eb6d MenuSorter: split out menu order configuration 2017-03-26 11:12:44 +02:00
Frans de Jonge
8f31a81601 MenuSorter: some documentation
MenuSorter: forgot to add plugin style change

MenuSorter: worked out the final quirks

* Menu always compressed into tables without missing indexes for ipairs compatibility
* Orphans attached
* Separators no longer count as items
2017-03-26 11:12:44 +02:00
Frans de Jonge
b7b5950e98 MenuSorter: review comments and various bug fixes
* fixed wrongful retention of submenus variable and added return to MenuSorter:findById
* fixed readerfooter_spec.lua error
* fixed review comments
2017-03-26 11:12:44 +02:00
Frans de Jonge
aa0bf60ccb MenuSorter: pass config prefix for proper user override 2017-03-26 11:12:44 +02:00
Frans de Jonge
5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
2017-03-26 11:12:44 +02:00
Frans de Jonge
d1785e1863 Reorganize menus
* Replace "home" (exit) menu with hamburger
* Discard pokeball and put items in hamburger
* Introduce search menu in reader

Cf. #2562
2017-02-26 13:50:59 -08:00
Qingping Hou
9b7aba3fba fix: override readerhighlight hold in readerfooter
Also fix touch zone dependency graph generation code.

ReaderHighlight has now been migrated to use touch zone

Inputcontainer's touch event handling logic changed to only stop
propagation when handler returns `true`. Previously, it stops
propagation when a handler is found. This is needed to support
both readerhighlight_tap and tap_forward touch zones.
2017-01-30 05:53:44 -08:00
Qingping Hou
f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 2017-01-02 19:52:09 -08:00
Qingping Hou
d16688c43c feat: show full menu on menu key for touch devices 2016-12-29 00:02:22 -08:00
Qingping Hou
d2743b6f15 fix: migrate readermenu to use touch zone 2016-12-18 20:28:13 -08:00
Qingping Hou
ec6da5318c screensaver(fix): add back menu toggle to support screensaver folder 2016-07-31 18:26:26 -07:00
chrox
92184f0199 fix #1985 by always return to the parent dir of current doc in the FileManager 2016-04-23 22:57:19 +08:00
Qingping Hou
72e7cd5cf4 style: move functions around 2016-02-16 23:26:08 -08:00
Qingping Hou
186673587e chore: fix some of the luacheck errors 2015-04-26 20:57:45 -04:00
chrox
5d79158602 fix cannot save document if exit directly after highlighting in PDF 2015-02-02 02:22:58 +08:00
chrox
f22a53affd screen orientation won't change when going into filemanager
and filemanager remembers screen orientation at exit
This should fix #1338.
2015-02-02 01:36:52 +08:00
Hans-Werner Hilse
bb5254022d fix: save properly last open menu in reader
20fd6f902e missed the saving part when
renaming the configuration variable.

Fixes #1335.
2014-12-03 16:14:30 +00:00
chrox
20fd6f902e fix #1175 2014-12-01 15:32:12 +08:00
chrox
1accddb8cd fix #1236 by opening the parent directory of last used document 2014-11-25 17:49:46 +08:00
Frans de Jonge
da00b4b8a9 Refactored menu
While looking into #1219 I accidentally ended up refactoring some stuff.

Tested in emulator and on H2O, but be wary because I might have overlooked something.
2014-11-21 15:57:10 +01:00
chrox
897358e09a add missing translation of 'Screensaver' options 2014-11-17 21:45:14 +08:00
chrox
edb124471d screensaver options only apply to Kobo devices 2014-11-13 12:59:02 +08:00
Qingping Hou
123d0a1230 Merge pull request #1126 from chrox/wifi_toggler
add network settings in reader menu
2014-11-11 03:05:12 -05:00
chrox
590073e4a8 add network settings in reader menu
and remove the wifi toggler on the footer of each menu page,
so that network status is only checked (currently with the stdout of ip cmd)
when navigating to the "Network settings" submenu instead of checking
on each menu popup.
2014-11-11 12:12:39 +08:00
chrox
95ac27df5c remember menu tab index when showing reader menu 2014-11-11 10:06:17 +08:00
Hans-Werner Hilse
d91dccae80 fix night mode setting
implement bezel cleaning with proper background color
2014-11-09 18:03:33 +01:00
chrox
0dd3a1f8a1 add option to turn off e-ink optimization
which currently just sets free the limitation of panning gestures
emitting rate. This should fix #1039 when unchecking the
"E-ink optimization" in the "Screen settings".
2014-11-06 13:16:35 +08:00
chrox
8ddca4bf49 close reader config panel when touching reader menu 2014-11-05 12:28:28 +08: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
chrox
dfcd67c5bf move screenshot settings to submenu of Screenshot entry in readermenu
And also fix a touchmenu bug that prevent some menu entries
(always at the bottom of the menu) from showing submenus. The reason is
that the onTapSelect method of TouchMenuItem doesn't return true, so that
the tap gesture will propagate to the parent widget and be captured by
touchmenu itself. But at this time the dimen of touchmenu is changed to
the submenu of the tapped menuitem. If the submenu is short enough the
tap will be outside of touchmenu which will cause a TapCloseAllMenus
event and the submenu will never be shown.
2014-10-30 15:51:35 +08:00
Michael Hall
79cb75b153 Added option for proportional cover image screensaver 2014-10-26 14:47:48 +00:00
Qingping Hou
394c847e2b fix(app): initilize menu properly in reader and filemanager 2014-10-25 05:46:02 -04:00
chrox
d30709edb0 add djvu render mode options in readermenu 2014-10-15 20:31:24 +08:00
chrox
e714caed8d refactoring restoreScreenMode from readerview to filemanager
This should fix #983.
2014-10-12 17:26:36 +08:00
chrox
2b26e599d9 return to previous filemanager view instead of opening a new one 2014-10-10 18:14:33 +08:00
WS64
4ee35bb972 Add "exclude screensaver" to menu 2014-09-17 12:25:13 +02:00
WS64
de1d8d7cac Switch back to portrait before leaving book 2014-09-10 13:49:11 +08:00
chrox
21dcf787da add OPDS support
This PR implements a simple OPDS browser which can be launched
from filemanager menu.
2014-09-05 21:07:43 +08:00
chrox
2bec0017a0 refactor out global functions showHomePage and showReaderUI 2014-09-05 21:07:42 +08:00
chrox
c74c258fc7 add filemanager icon in reader menu
now we can access the filemanager in all launcher configurations
2014-09-05 21:07:42 +08:00
chrox
1ddafbea14 reorder setting entries in reader menu 2014-08-06 20:32:28 +08:00
chrox
3cb03825e5 display OTA update menu only on Kindle and Kobo 2014-08-06 20:32:28 +08:00
chrox
3c8e6975fb move screen DPI and refresh rate entries into Screen menu 2014-08-06 20:32:28 +08:00
chrox
b83c4c3d95 hide several koptoptions in advanced mode 2014-08-05 12:04:17 +08:00
chrox
55554acf39 refactoring: buildin hold on menu entry to input 2014-08-05 10:23:25 +08:00