mirror of https://github.com/koreader/koreader
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.
f05e62c1fb
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 | |
---|---|---|
.. | ||
container | 5 years ago | |
bboxwidget.lua | 5 years ago | |
bookstatuswidget.lua | 5 years ago | |
button.lua | 5 years ago | |
buttondialog.lua | 7 years ago | |
buttondialogtitle.lua | 6 years ago | |
buttonprogresswidget.lua | 5 years ago | |
buttontable.lua | 5 years ago | |
checkbutton.lua | 6 years ago | |
checkmark.lua | 6 years ago | |
closebutton.lua | 7 years ago | |
configdialog.lua | 5 years ago | |
confirmbox.lua | 7 years ago | |
datewidget.lua | 7 years ago | |
dictquicklookup.lua | 5 years ago | |
eventlistener.lua | 7 years ago | |
filechooser.lua | 5 years ago | |
fixedtextwidget.lua | 5 years ago | |
focusmanager.lua | 6 years ago | |
footnotewidget.lua | 5 years ago | |
frontlightwidget.lua | 5 years ago | |
horizontalgroup.lua | 7 years ago | |
horizontalspan.lua | ||
htmlboxwidget.lua | 6 years ago | |
hyphenationlimits.lua | 5 years ago | |
iconbutton.lua | 5 years ago | |
imageviewer.lua | 5 years ago | |
imagewidget.lua | 6 years ago | |
infomessage.lua | 5 years ago | |
inputdialog.lua | 5 years ago | |
inputtext.lua | 5 years ago | |
keyvaluepage.lua | 5 years ago | |
linewidget.lua | 5 years ago | |
linkbox.lua | 6 years ago | |
listview.lua | 6 years ago | |
logindialog.lua | 6 years ago | |
menu.lua | 5 years ago | |
multiconfirmbox.lua | 7 years ago | |
multiinputdialog.lua | 6 years ago | |
naturallightwidget.lua | 6 years ago | |
networksetting.lua | 5 years ago | |
notification.lua | 6 years ago | |
numberpickerwidget.lua | 5 years ago | |
opdsbrowser.lua | 5 years ago | |
openwithdialog.lua | 6 years ago | |
overlapgroup.lua | 7 years ago | |
pathchooser.lua | 6 years ago | |
physicalkeyboard.lua | 6 years ago | |
progresswidget.lua | 5 years ago | |
radiobutton.lua | 6 years ago | |
radiobuttontable.lua | 6 years ago | |
rectspan.lua | ||
screensaverwidget.lua | 6 years ago | |
screenshoter.lua | 5 years ago | |
scrollhtmlwidget.lua | 6 years ago | |
scrolltextwidget.lua | 6 years ago | |
sortwidget.lua | 5 years ago | |
spinwidget.lua | 5 years ago | |
textboxwidget.lua | 5 years ago | |
textviewer.lua | 6 years ago | |
textwidget.lua | 5 years ago | |
timewidget.lua | 7 years ago | |
toggleswitch.lua | 5 years ago | |
touchmenu.lua | 5 years ago | |
trapwidget.lua | 5 years ago | |
verticalgroup.lua | 7 years ago | |
verticalscrollbar.lua | 6 years ago | |
verticalspan.lua | ||
virtualkeyboard.lua | 5 years ago | |
widget.lua | 8 years ago |