[travis] Add protection against unscaled sizes

As pointed out by @poire-z

* [fix, UX] SkimToWidget scaling

* [fix] Button scaling

* [fix, UX] Scale ProgressWidget

* [fix, UX] Scale confirmbox

* [fix, UX] Scale just about everything
This commit is contained in:
Frans de Jonge
2017-09-11 10:32:39 +02:00
parent 8babe57106
commit 9eb073a524
49 changed files with 270 additions and 244 deletions

View File

@@ -210,11 +210,11 @@ function ReaderProgress:genWeekStats(stats_day)
date_format_show = dayOfWeekTranslation[os.date("%A", diff_time)] .. os.date(" (%d.%m)", diff_time)
local total_group = HorizontalGroup:new{
align = "center",
padding = 2,
padding = Screen:scaleBySize(2),
LeftContainer:new{
dimen = Geom:new{ w = self.screen_width , h = height / 3 },
TextWidget:new{
padding = 2,
padding = Screen:scaleBySize(2),
text = date_format_show .. " - " .. util.secondsToClock(select_day_time, true),
face = Font:getFace("smallffont"),
},
@@ -353,7 +353,7 @@ function ReaderProgress:genSummaryWeek(width)
CenterContainer:new{
dimen = Geom:new{ w = tile_width, h = tile_height },
TextWidget:new{
padding = 5,
padding = Screen:scaleBySize(5),
text = _("Total"),
face = self.small_font_face,
},