You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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)
5 years ago
..
lib Swipe for menu and quickstart guide (#2761) 7 years ago
filemanager.lua TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
filemanagerbookinfo.lua Gesture manager: fix actions: Book cover, Book description (#4800) 5 years ago
filemanagerconverter.lua Replace remaining 'local gettext' with '_' (#4160) 6 years ago
filemanagerfilesearcher.lua [fix] Filesearcher crash on empty file attributes (#5351) 5 years ago
filemanagerhistory.lua [fix] Ensure "Open last/previous" point to existing files (#4367) 6 years ago
filemanagermenu.lua [fix] Make set defaults self contained (#5419) 5 years ago
filemanagersearch.lua [i18n] Add translator notes (#5250) 5 years ago
filemanagersetdefaults.lua [fix] Make set defaults self contained (#5419) 5 years ago
filemanagershortcuts.lua [feat, UX] Paste in folder shortcuts 5 years ago
filemanagerutil.lua UI Changes (#5508) 5 years ago