poire-z
0aa0b9b2de
ImageWidget: use MuPDF for scaling images ( #3260 )
...
* Cache scaled images with scale_for_dpi
* Don't update original self.scale_for_dpi
A same ImageWidget object can be free()'d and re-render()ed,
and we would then lose scale_for_dpi on next renderings
2017-09-26 10:21:58 +02:00
poire-z
9448a52515
[UX] Smaller bottom menu icons ( #3257 )
...
And unrelated small optimisation in imagewidget
2017-09-24 15:22:06 +02:00
Robert
88aba421cb
Timer Reader with normal time format ( #3244 )
2017-09-24 13:03:14 +02:00
poire-z
c770d71f14
Fix Menu (TOC, classic file browser...) right padding ( #3255 )
2017-09-24 01:08:44 +02:00
Frans de Jonge
36478262bf
[UX] Smaller top menu icons ( #3253 )
2017-09-23 22:01:30 +02:00
Frans de Jonge
a6be301695
Added Size module
2017-09-23 20:24:45 +02:00
Frans de Jonge
9eb073a524
[travis] Add protection against unscaled sizes
...
As pointed out by @poire-z
* [fix, UX] SkimToWidget scaling
* [fix] Button scaling
* [fix, UX] Scale ProgressWidget
* [fix, UX] Scale confirmbox
* [fix, UX] Scale just about everything
2017-09-23 20:24:45 +02:00
Frans de Jonge
cfb039a91b
[fix] Scale ImageWidget by screen size as well as DPI
...
Fix #3204
2017-09-23 20:24:45 +02:00
Robert
bdf02f14aa
Add bookmark browsing mode to menu ( #3248 )
2017-09-23 18:25:22 +02:00
poire-z
4d18ac1100
Some History fixes and enhancements ( #3247 )
...
Made the onHold buttons table similar to the one of File browser.
Added "Purge .sdr" and "Delete" to these buttons.
Moved the purgeSettings and removeFileFromHistoryIfWanted
logic into filemanagerutil functions.
Stay on the same page when manipulating history (previously, we were
always put back on first page).
Really keep deleted files in history (unless setting says otherwise).
Show deleted files in grey or dimmed in classic History and all
CoverBrowser display modes.
2017-09-22 18:24:38 +02:00
poire-z
47139266b2
Dict lookup: allow cancelling with tap
...
base bumped for ffi/util.getNonBlockingReadSize(luafile)
2017-09-20 23:09:59 +02:00
poire-z
de54ef5ae6
Added Trapper module, for simple interaction with UI
...
This module provides methods for simple interaction with UI, without
the need for explicit callbacks, for use by linear jobs between
their steps.
Uses coroutines, but their usage is hidden by a simple API.
Factored out of Wikipedia:createEpubWithUI().
2017-09-20 23:09:59 +02:00
poire-z
5828ef8f1c
Fix potential crash when clearing hold highlight ( #3241 )
...
A delayed clear() could reset hold_pos while a onHold/onHoldPan/
onHoldRelease is in progress, resulting in hold_pos becoming nil and
a crash.
2017-09-20 17:35:30 +02:00
poire-z
941d77f6bc
Reduce unhighlight delay when closing dict ( #3239 )
2017-09-19 22:48:30 +02:00
Robert
5258643a85
Add a date setting ( #3234 )
2017-09-18 19:04:36 +02:00
mwoz123
ae66a367c2
Android fullscreen switcher ( #2938 )
2017-09-17 20:29:49 +02:00
Robert
d4a4bb2b55
Refactor TimeWidget and add NumberPickerWidget ( #3232 )
2017-09-17 16:41:54 +02:00
poire-z
80d8e44bde
Fix Wiki save as epub crash on certain pages ( #3231 )
...
* Fix Wiki save as epub crash on certain pages
When first images don't have a height or width attribute
2017-09-17 15:48:47 +02:00
poire-z
79dca8e245
[UX] Wikipedia save as EPUB: allow for aborting download ( #3224 )
2017-09-16 17:25:47 +02:00
Robert
7c88bad189
[fix] Statistics settings reset to default when on save without change ( #3188 )
...
* Fix : #3186
2017-09-14 22:31:25 +02:00
Robert
e5eb015f1b
Statistics in bookstatuswidget ( #3218 )
2017-09-14 22:29:09 +02:00
poire-z
bccbf95080
Add horizontal_padding to IconButton ( #3213 )
...
TouchMenu (top menu) and ConfigDialog (bottom menu) updated
to make use of that. This provides a wider sensitivity to
menu buttons.
2017-09-13 10:12:29 +02:00
Robert
56345fd8c0
Fix moving icons in config panel ( #3211 )
2017-09-12 18:34:30 +02:00
Frans de Jonge
8c9fdfbb1a
[fix] MenuSorter: don't ignore user order without counterpart in default menu ( #3166 )
...
Fixes #3164 .
2017-09-11 22:56:44 +02:00
Robert
85e2140ced
Show position on config panel ( #3194 )
2017-09-11 20:54:27 +02:00
Frans de Jonge
1a1c1e3f80
[fix, doc] TimeVal: typo
2017-09-11 13:17:52 +02:00
Frans de Jonge
9dee6c045c
[doc] TimeVal ( #3201 )
2017-09-11 00:01:54 +02:00
Frans de Jonge
7310937219
[fix] "Follow Link" popup issues ( #3198 )
...
* Add current location to location stack from follow link popup
See https://github.com/koreader/koreader/pull/3190#issuecomment-328332771
* Word highlight not removed
* "Follow Link" not translated
* Typo in docs
2017-09-10 14:26:49 +02:00
Frans de Jonge
f439ca0e8d
[UX] Add "Follow Link" in hold/highlight dialog ( #3190 )
...
* This way you can disable "tap to follow links" on single tap yet still follow links.
* Change menu as well as per @poire-z's suggestion.
2017-09-09 18:30:00 +02:00
poire-z
71553a5190
Change a logger.warn() back to .dbg() as it used to be
2017-09-08 23:41:45 -07:00
poire-z
75b7c4b524
Added Font Hinting toggle ( #3182 )
2017-09-08 17:38:51 +02:00
poire-z
1e17e4c291
Fix crash when tapping on toggleswitch left or bottom borders ( #3181 )
2017-09-06 12:56:50 +02:00
Frans de Jonge
cfaa119c35
[fix, UX] Allow modal widget on top of modal widget ( #3170 )
...
Fixes #2653 .
2017-09-05 00:01:46 -07:00
Frans de Jonge
829e2fffd8
[fix] MenuSorter: take care of orphaned submenus
...
See https://github.com/koreader/koreader/pull/3167#issuecomment-326805768
2017-09-04 22:55:14 -07:00
poire-z
d4fd0b9428
frontlight on kobo: a few fixes ( #3163 )
...
* frontlight on kobo: a few fixes
Rewritten to not update NickelConf on every change, and never
if KOBO_SYNC_BRIGHTNESS_WITH_NICKEL = false.
Reintroduce global settings frontlight_intensity and
is_frontlight_on to keep level and state across koreader
sessions.
Fix a few of the remaining issues on kobo light.
Ensure settings are saved when rebooting/powering off from
File browser.
* Ensure untoggle works when starting with light off
2017-09-04 21:05:05 +02:00
Frans de Jonge
177485f84f
[UX] Add exit menu ( #3167 )
...
* fixes #2898 (prevents accidentally triggering reboot or poweroff)
Add ConfirmBox before reboot/power off
* increases clarity by preventing second page
* add "sleep" menu entry
* Add exit menu hold callback
2017-09-03 15:40:50 +02:00
poire-z
774d2345e0
Added Embedded Fonts config toggle
...
Just under the existing "Embedded Styles". Support for this
was already there in crengine, and interfacing is similar to
what is done with Embedded Styles.
2017-09-02 20:49:48 +02:00
Robert
568e8f667a
Fix: Crash when highlight a word ( #3155 )
...
* Fix: Crash when highlight a word
* reorganize highlight strings
* Remove redundant var
2017-09-01 23:17:35 +02:00
Hzj_jie
1ff46a67b4
SwitchPlugin and BackgroundTaskPlugin with tests ( #3137 )
2017-08-31 16:37:39 +02:00
Frans de Jonge
199b6aba51
[fix] NetworkManager: check DNS from dns.msftncsi.com instead of www.example.com ( #3150 )
...
Sometimes www.example.com doesn't resolve. Fixes #3142 .
2017-08-30 22:02:23 -07:00
Robert
aae809ba48
max_width in buttontable - prevent overlong text ( #3145 )
...
* max_width in buttontable - prevent overlong text
* fix max_width
2017-08-29 21:11:16 +02:00
poire-z
c6cfed92d7
Fix kobo fl_min and frontlightwidget ( #3143 )
...
* Put back fl_min=0 as it is for all other devices (the idea
fl_min should be 1 and toggling managed some other way is
not implemented in current code).
* Fix a few frontlightwidget issues
2017-08-29 17:37:08 +02:00
Frans de Jonge
d931869ae3
[doc] RenderText:getGlyph() and truncateTextByWidth() ( #3140 )
2017-08-28 21:25:33 +02:00
Robert
c78f6989b4
Fix: truncateTextByWidth() should respect kerning and bold ( #3139 )
2017-08-28 20:36:15 +02:00
poire-z
1ab2a542dd
ImageViewer: fix rotation angle in landscape mode ( #3136 )
2017-08-27 09:01:46 +02:00
poire-z
5d2bebcc0b
Added Dictionary settings and Wikipedia settings menus ( #3121 )
...
Also removed OPDS `download_dir` from the candidates to Wikipedia
"Save as EPUB" dir.
2017-08-22 17:24:31 +02:00
Frans de Jonge
e23c2fd7ae
[fix] InputText: dirty dimensions
2017-08-20 21:39:00 +02:00
Frans de Jonge
4513718a2a
[fix] MenuSorter: ignore separator as first item
...
See https://github.com/koreader/koreader/pull/3107#issuecomment-323581851
2017-08-20 21:12:17 +02:00
Frans de Jonge
63241a20ea
[UX] Add CheckButton and use it for show password
...
Normal textinputs stay the same, password textinputs automatically gain a show password checkbutton underneath.
Thanks to @robert00s for the idea.
2017-08-20 11:44:15 +02:00
poire-z
a074876cc2
Added french keyboard
...
Same as std keyboard with only lowercase and uppercase letters layouts
adapted from QWERTY to the traditional french AZERTY layout.
2017-08-19 21:57:28 +02:00