2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/frontend/apps/filemanager
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
..
lib Swipe for menu and quickstart guide (#2761) 2017-04-15 14:45:56 +02:00
filemanager.lua TextWidget: small refactoring, better handle max_width (#5503) 2019-10-21 15:20:40 +02:00
filemanagerbookinfo.lua Gesture manager: fix actions: Book cover, Book description (#4800) 2019-03-15 15:29:25 +01:00
filemanagerconverter.lua Replace remaining 'local gettext' with '_' (#4160) 2018-08-15 21:56:35 +02:00
filemanagerfilesearcher.lua [fix] Filesearcher crash on empty file attributes (#5351) 2019-09-09 18:39:36 +02:00
filemanagerhistory.lua [fix] Ensure "Open last/previous" point to existing files (#4367) 2018-11-28 21:14:07 +01:00
filemanagermenu.lua [fix] Make set defaults self contained (#5419) 2019-09-26 23:13:35 +02:00
filemanagersearch.lua [i18n] Add translator notes (#5250) 2019-08-24 09:25:38 +02:00
filemanagersetdefaults.lua [fix] Make set defaults self contained (#5419) 2019-09-26 23:13:35 +02:00
filemanagershortcuts.lua [feat, UX] Paste in folder shortcuts 2019-06-09 15:26:05 +02:00
filemanagerutil.lua UI Changes (#5508) 2019-10-21 14:24:29 +02:00