Add more granularity in line-height settings with CRe (#4785)

70 -> 130, in steps of 5 ;).
This commit is contained in:
NiLuJe
2019-03-15 00:34:46 +01:00
committed by GitHub
parent 2aa77a4879
commit 645d41eda9
5 changed files with 62 additions and 21 deletions

View File

@@ -233,7 +233,7 @@ function ReaderFont:onSetFontSize(new_size)
end
function ReaderFont:onSetLineSpace(space)
self.line_space_percent = math.min(200, math.max(80, space))
self.line_space_percent = math.min(200, math.max(50, space))
UIManager:show(Notification:new{
text = T( _("Line spacing set to %1%."), self.line_space_percent),
timeout = 2,