2
0
mirror of https://github.com/koreader/koreader synced 2024-11-20 03:25:34 +00:00
koreader/frontend/ui/widget
NiLuJe d8fc28df97
Page Overlap: Fix rectangle computation and arrow mode (#7269)
* In ReaderPaging, the panning step pre-PanningUpdate can be wildly overshot near page edges, so, use the corrected value instead by recomputing it after the panning has been effectively computed by ReaderView.
This fixes slight inaccuracies, as well as glaring mistakes when going backwards, or when near page edges.
This is in line with how ReaderRolling computes the value, which I only realized later because I'm an idiot. 
* Minor cleanups around the handling of the dim_area Geom object in general.

* Fix the "Arrow" page overlap mode to be painted in the right coordinates when going backward. Issue might not have been terribly clear because of the previous issue ;).
* Center the arrow's point, while we're here.
* Don't use AlphaContainer to make it translucent, because AlphaContainer is horribly broken, and has weird quirks and behavior that make no sense to me unless some very specific and unlikely constraints are met, and they definitely aren't here.
This fixes the arrow copying an arrow-sized square of the original page the book was opened on on the top-left corner of *every* page with an arrow. (lol).
* Do real proper alpha-blending via Icon/ImageWidget from the original icon, instead of faking it via addBlitFrom, in order to avoid the dimming *around* the triangle's shape.
2021-02-10 20:06:41 +01:00
..
container Page Overlap: Fix rectangle computation and arrow mode (#7269) 2021-02-10 20:06:41 +01:00
bboxwidget.lua Add support for physical button for page crop (#6091) 2020-04-25 09:03:19 +02:00
bookstatuswidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
button.lua Button: Fix some more weird highlighting corner-cases (#7256) 2021-02-07 18:29:32 +01:00
buttondialog.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
buttondialogtitle.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
buttonprogresswidget.lua [UX] Use a full-width plus for buttons paired with a unicode minus (#7018) 2020-12-20 20:47:40 +01:00
buttontable.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
checkbutton.lua Revamp "flash_ui" handling (#7118) 2021-01-10 01:51:09 +01:00
checkmark.lua
closebutton.lua
configdialog.lua ConfigDialog: Check alt_name_text if name_text isn't set, 2021-02-04 06:30:16 +01:00
confirmbox.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
datewidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
dictquicklookup.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
doublespinwidget.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
eventlistener.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
filechooser.lua [UX] Add ToC/Bookmarks settings 2021-02-05 23:58:32 +01:00
fixedtextwidget.lua
focusmanager.lua [feat] FocusManager: wrap around horizontally (#6315) 2020-06-27 08:43:28 +02:00
footnotewidget.lua Footnote popups: allow setting an absolute font size 2020-09-18 18:09:54 +02:00
frontlightwidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
horizontalgroup.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
horizontalspan.lua
htmlboxwidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
iconbutton.lua Button: Fix some more weird highlighting corner-cases (#7256) 2021-02-07 18:29:32 +01:00
iconwidget.lua Page Overlap: Fix rectangle computation and arrow mode (#7269) 2021-02-10 20:06:41 +01:00
imageviewer.lua Fix a few things after #7166 (#7212) 2021-01-31 02:51:40 +01:00
imagewidget.lua Page Overlap: Fix rectangle computation and arrow mode (#7269) 2021-02-10 20:06:41 +01:00
infomessage.lua ConfigDialog: temporarily hide when showing SpinWidgets 2021-01-12 00:34:30 +01:00
inputdialog.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
inputtext.lua Notification: closed by any event, but not consuming it 2021-01-12 00:34:30 +01:00
keyboardlayoutdialog.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
keyvaluepage.lua Fix a few things after #7166 (#7212) 2021-01-31 02:51:40 +01:00
linewidget.lua
linkbox.lua
listview.lua
logindialog.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
menu.lua Button: Fix some more weird highlighting corner-cases (#7256) 2021-02-07 18:29:32 +01:00
multiconfirmbox.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
multiinputdialog.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
naturallightwidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
networksetting.lua NetworkManager: Slightly more accurate wifi strength icons (#7020) 2020-12-21 18:48:33 +01:00
notification.lua Notifications: stack them instead of overdrawing them 2021-02-01 23:57:47 +01:00
numberpickerwidget.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
openwithdialog.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
overlapgroup.lua Statistics: new Calendar view (#5854) 2020-02-12 23:05:18 +01:00
pathchooser.lua PathChooser: fetch 'show_hidden' setting on each use (#5923) 2020-03-06 21:10:01 +01:00
physicalkeyboard.lua
progresswidget.lua Hide non-linear fragments 2020-11-18 18:28:47 +01:00
qrmessage.lua Qrcode support (#6844) 2020-11-04 18:59:39 +01:00
qrwidget.lua Qrcode support (#6844) 2020-11-04 18:59:39 +01:00
radiobutton.lua Revamp "flash_ui" handling (#7118) 2021-01-10 01:51:09 +01:00
radiobuttontable.lua Open with: add Text Editor plugin 2020-08-29 20:07:26 +02:00
rectspan.lua
screensaverwidget.lua
screenshoter.lua Screenshot: use month number instead of name (#6062) 2020-04-22 09:07:48 +02:00
scrollhtmlwidget.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
scrolltextwidget.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
sortwidget.lua Fix a few things after #7166 (#7212) 2021-01-31 02:51:40 +01:00
spinwidget.lua Button: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +01:00
textboxwidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
textviewer.lua TextViewer: Flag as a modal (#7255) 2021-02-06 21:10:44 +01:00
textwidget.lua Top menu: long-press on truncated menu item to show full text 2021-01-30 19:07:12 +01:00
timewidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
toggleswitch.lua ConfigDialog: temporarily hide when showing SpinWidgets 2021-01-12 00:34:30 +01:00
touchmenu.lua Button: Fix some more weird highlighting corner-cases (#7256) 2021-02-07 18:29:32 +01:00
trapwidget.lua
verticalgroup.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
verticalscrollbar.lua Text/HTML widgets: allow scrolling with the scrollbar 2020-08-26 23:43:10 +02:00
verticalspan.lua
virtualkeyboard.lua [UX] Add Persian keyboard (#7222) 2021-02-05 21:30:09 +01:00
widget.lua