2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/plugins
poire-z f05e62c1fb
TextWidget: small refactoring, better handle max_width (#5503)
Lots of code was doing some renderText calls to get the size
of some text string, and truncate it to some width if needed,
with or without an added ellipsis, before instantiating
a TextWidget with that tweaked text string.

This PR fixes/adds some properties and methods to TextWidget
so all that can be done by it. It makes the calling code
simpler, as they don't need to use RenderText directly.
(Additionally, when we go at using Harfbuzz for text rendering,
we'll just have to update or replace textwidget.lua without
the need to update any higher level code.)

Also:
- RenderText: removed the space added by truncateTextByWidth
  after the ellipsis, as it doesn't feel needed, and break
  right alignment of the ellipsis with other texts.
- KeyValuePage: fix some subtle size and alignment issues.
- NumberPickerWidget: fix font size (provided font size was
  not used)
2019-10-21 15:20:40 +02:00
..
autofrontlight.koplugin [Fix] Don't load disabled plugins (#4169) 2018-08-18 20:41:37 +02:00
autosuspend.koplugin [fix, plugin] Remove wakeup task on resume (#5502) 2019-10-17 23:31:30 +02:00
autoturn.koplugin [feat, plugin] Add AutoTurn (#5295) 2019-09-01 21:30:19 +02:00
backgroundrunner.koplugin [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
batterystat.koplugin Keep some menus open when Tap or Hold (#4189) 2018-09-04 23:55:58 +02:00
calibrecompanion.koplugin [lang] Miscellaneous improvements (#5263) 2019-08-25 22:37:26 +02:00
coverbrowser.koplugin TextWidget: small refactoring, better handle max_width (#5503) 2019-10-21 15:20:40 +02:00
docsettingtweak.koplugin [Plugin] Per directory defaults (#5428) 2019-10-08 17:14:38 +02:00
evernote.koplugin [Plugin] Support for exporting annotations/bookmark renames (#5440) 2019-10-11 20:39:13 +02:00
goodreads.koplugin TextWidget: small refactoring, better handle max_width (#5503) 2019-10-21 15:20:40 +02:00
hello.koplugin [feat] MenuSorter: add sorting_hint support (#4399) 2018-12-14 16:56:57 +01:00
keepalive.koplugin [feat] Add support for BQ/Fnac devices (#4294) 2018-10-31 23:48:36 +01:00
kosync.koplugin [fix, UX] Update kosync login/logout text (#5278) 2019-08-29 10:05:49 +02:00
newsdownloader.koplugin [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
perceptionexpander.koplugin [fix, plugin] Change perception expander plugin behaviors (#5051) 2019-06-01 16:56:18 +02:00
readtimer.koplugin [i18n, plugins] ReadTimer - better plural forms (#5315) 2019-09-04 15:36:13 +02:00
send2ebook.koplugin [chore] Convert a couple more todos (#5267) 2019-08-26 15:49:50 +02:00
SSH.koplugin [UX] SSH: double info dialog timeout (#4417) 2018-12-24 20:36:09 +01:00
statistics.koplugin [plugin/statistics] Synchronize Current book with footer (#5344) 2019-09-10 21:32:02 +02:00
systemstat.koplugin show android mountpoint on system stats (#5493) 2019-10-15 22:51:36 +02:00
terminal.koplugin Keep some menus open when Tap or Hold (#4189) 2018-09-04 23:55:58 +02:00
texteditor.koplugin [CI] Switch to custom xgettext build to extract multiline strings (#5242) 2019-08-22 17:11:47 +02:00
timesync.koplugin [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
wallabag.koplugin [feat] plugins/Wallabag: add ability to set a list of tags to ignore (#5467) 2019-10-13 08:48:37 +02:00
zsync.koplugin Fix: Zsync -> Subscribe to book share crashes (#5184) 2019-08-07 12:41:05 +02:00