2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend/ui/widget
NiLuJe 285fc75aa7
Button: Better handling of translucent MovableContainer (#7223)
* DictQuickLookup: Preserve alpha when switching dict, and scrolling
inside a dict.

* Start moving the NumberPicker alpha hack to Button itself

This makes handling flash_ui easier and saner, avoiding flickering.

* Handle the transparency hack entirely from within Button

* Murder the now unnecessary NumberPicker update_callback hack

* Tweak comments

* And the Button handling made that redundant, too

* Squish debug print

* More comment tweaks

* Reset transparency on scrolling instead of rpeserving it

* Reset alpha when switching dictionaries

* Simplify the pre/post callbakc transparency state handling

And explain why we need to care.

* Give a named reference to ButtonDialog's MovableContainer, so the Button
alpha hack behaves with it

* Document the "self.movable" convention

* Amend that comment a bit

e.g., we don't care much about MultiConfirmBox'w MpvableContainer, as
any button action will close it.

* And make SkimTo's MovableContainer accessible so that Button can grok
that it's translucent
2021-02-02 04:27:14 +01:00
..
container Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +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: Better handling of translucent MovableContainer (#7223) 2021-02-02 04:27:14 +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 [RTL UI] update widgets and apps for UI mirroring 2019-12-08 15:10:51 +01:00
closebutton.lua [RTL UI] update widgets and apps for UI mirroring 2019-12-08 15:10:51 +01:00
configdialog.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +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 Bump base to bring in a few fixes & cleanups (#6753) 2020-10-05 16:34:46 +02:00
fixedtextwidget.lua TextWidget: small refactoring, better handle max_width (#5503) 2019-10-21 15:20:40 +02:00
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 cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
htmlboxwidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
iconbutton.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +01:00
iconwidget.lua IconWidget: fix user icons directory path (#7019) 2020-12-20 20:45:55 +01:00
imageviewer.lua Fix a few things after #7166 (#7212) 2021-01-31 02:51:40 +01:00
imagewidget.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +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 [chore] Convert a couple more todos (#5267) 2019-08-26 15:49:50 +02:00
linkbox.lua Various blitting related cleanups (#4789) 2019-03-14 20:58:45 +01:00
listview.lua [RTL UI] update widgets and apps for UI mirroring 2019-12-08 15:10:51 +01:00
logindialog.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
menu.lua Tame some ButtonTable users into re-using Buttontable instances if possible (#7166) 2021-01-29 00:20:15 +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
opdsbrowser.lua [feat] Support mimetypes in DocumentRegistry:hasProvider() (#7155) 2021-01-17 09:22:48 +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 Various blitting related cleanups (#4789) 2019-03-14 20:58:45 +01:00
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 cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
screensaverwidget.lua A few minor fixes after #4541 (#4561) 2019-02-08 18:31:40 +01:00
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 [RTL UI] update widgets and apps for UI mirroring 2019-12-08 15:10:51 +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 Top menu: long-press on truncated menu item to show full text 2021-01-30 19:07:12 +01:00
trapwidget.lua TextWidget: small refactoring, better handle max_width (#5503) 2019-10-21 15:20:40 +02:00
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 cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
virtualkeyboard.lua Georgian keyboard (#7225) 2021-02-01 22:35:15 +01:00
widget.lua doc: fix document build 2016-12-25 12:13:53 -08:00