2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend
NiLuJe 3060dc81af
Revamp "flash_ui" handling (#7118)
* Wherever possible, do an actual dumb invert on the Screen BB instead of repainting the widget, *then* inverting it (which is what the "invert" flag does).
* Instead of playing with nextTick/tickAfterNext delays, explicitly fence stuff with forceRePaint
* And, in the few cases where said Mk. 7 quirk kicks in, make the fences more marked by using a well-placed WAIT_FOR_UPDATE_COMPLETE

* Fix an issue in Button where show/hide & enable/disable where actually all toggles, which meant that duplicate calls or timing issues would do the wrong thing. (This broke dimming some icons, and mistakenly dropped the background from FM chevrons, for example).
* Speaking of, fix Button's hide/show to actually restore the background properly (there was a stupid typo in the variable name)
* Still in Button, fix the insanity of the double repaint on rounded buttons. Turns out it made sense, after all (and was related to said missing background, and bad interaction with invert & text with no background).
* KeyValuePage suffered from a similar issue with broken highlights (all black) because of missing backgrounds.
* In ConfigDialog, only instanciate IconButtons once (because every tab switch causes a full instantiation; and the initial display implies a full instanciation and an initial tab switch). Otherwise, both instances linger, and catch taps, and as such, double highlights.
* ConfigDialog: Restore the "don't repaint ReaderUI" when switching between similarly sized tabs (re #6131). I never could reproduce that on eInk, and I can't now on the emulator, so I'm assuming @poire-z fixed it during the swap to SVG icons.
* KeyValuePage: Only instanciate Buttons once (again, this is a widget that goes through a full init every page). Again, caused highlight/dimming issues because buttons were stacked.
* Menu: Ditto.
* TouchMenu: Now home of the gnarliest unhilight heuristics, because of the sheer amount of different things that can happen (and/or thanks to stuff not flagged covers_fullscreen properly ;p).

* Bump base
https://github.com/koreader/koreader-base/pull/1280
https://github.com/koreader/koreader-base/pull/1282
https://github.com/koreader/koreader-base/pull/1283
https://github.com/koreader/koreader-base/pull/1284

* Bump android-luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/284
https://github.com/koreader/android-luajit-launcher/pull/285
https://github.com/koreader/android-luajit-launcher/pull/286
https://github.com/koreader/android-luajit-launcher/pull/287
2021-01-10 01:51:09 +01:00
..
apps Revamp "flash_ui" handling (#7118) 2021-01-10 01:51:09 +01:00
device reader.lua: rework file/directory argument handling. (#7053) 2021-01-07 20:38:10 +01:00
document cre.getWordFromPosition(): fix a few issues 2020-12-31 13:28:08 +01:00
ui Revamp "flash_ui" handling (#7118) 2021-01-10 01:51:09 +01:00
cache.lua More Android trickery (#7059) 2020-12-26 20:23:51 +01:00
cacheitem.lua cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
configurable.lua decouple UI definitions from document modules 2019-03-03 13:10:45 +01:00
dbg.lua [Kobo] Support USBMS exports (#6552) 2020-08-25 02:00:59 +02:00
depgraph.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
device.lua Remarkable port (#5828) 2020-02-08 01:58:10 +01:00
dispatcher.lua Dispatcher: update document.configurable (#7116) 2021-01-07 23:19:23 +01:00
docsettings.lua History: show last read date instead of file size 2020-08-29 20:07:26 +02:00
dump.lua Order keys in settings.reader.lua (#6868) 2020-11-12 20:38:11 +01:00
fontlist.lua fontlist: Skip fonts with missing family_name (#6820) 2020-10-24 13:23:05 +02:00
gettext.lua [fix] Always initiate empty context table (#6874) 2020-11-13 16:54:01 +01:00
httpclient.lua build: enforce luacheck in travis build 2016-02-09 23:01:52 -08:00
logger.lua use android log categories 2019-01-03 08:56:29 +01:00
luadata.lua Use fsync() for more robust setting files saving 2019-12-10 23:57:32 +01:00
luasettings.lua Add fall back to text selection option to panel zoom (#6960) 2020-12-24 09:07:27 +01:00
luxl.lua [fix] Don't break OPDS parsing on HR tags (#5949) 2020-03-14 21:17:42 +01:00
optmath.lua [[doc] Add documentation to optmath (#6258) 2020-06-11 17:05:50 +02:00
pluginloader.lua Add deprecation messages to plugins (#7101) 2021-01-07 23:15:32 +01:00
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 2017-08-24 09:10:57 +02:00
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 2019-03-27 22:50:44 +01:00
readcollection.lua Minor util & ffi/util cleanups (#6657) 2020-09-15 20:39:32 +02:00
readhistory.lua Tests: Make a few things more deterministic (#6991) 2020-12-15 21:10:36 +01:00
util.lua Revamp "flash_ui" handling (#7118) 2021-01-10 01:51:09 +01:00
version.lua Fix point release and revision detection in Version:getShortVersion (#6693) 2020-09-21 21:40:48 +02:00