dict/wiki: definitions' text justification

This can be disabled by adding ["dict_justify"] = false to settings.reader.lua
This commit is contained in:
poire-z
2017-01-01 10:24:49 +01:00
committed by Qingping Hou
parent fc8d26ad89
commit ebe0c08bfb
4 changed files with 75 additions and 10 deletions

View File

@@ -19,12 +19,13 @@ local ScrollTextWidget = InputContainer:new{
charlist = nil,
charpos = nil,
editable = false,
justified = false,
face = nil,
fgcolor = Blitbuffer.COLOR_BLACK,
width = 400,
height = 20,
scroll_bar_width = Screen:scaleBySize(6),
text_scroll_span = Screen:scaleBySize(6),
text_scroll_span = Screen:scaleBySize(12),
dialog = nil,
}
@@ -34,6 +35,7 @@ function ScrollTextWidget:init()
charlist = self.charlist,
charpos = self.charpos,
editable = self.editable,
justified = self.justified,
face = self.face,
fgcolor = self.fgcolor,
width = self.width - self.scroll_bar_width - self.text_scroll_span,