Lite XL modification to welcome screen

This commit is contained in:
Francesco Abbate 2020-12-30 16:15:57 +01:00
parent 77d65fb3a1
commit 0ff61a30e1
1 changed files with 4 additions and 2 deletions

View File

@ -12,8 +12,10 @@ local EmptyView = View:extend()
local function draw_text(x, y, color)
local th = style.big_font:get_height()
local dh = th + style.padding.y * 2
x = renderer.draw_text(style.big_font, "lite", x, y + (dh - th) / 2, color)
local dh = 2 * th + style.padding.y * 2
local x1, y1 = x, y + (dh - th) / 2
x = renderer.draw_text(style.big_font, "Lite XL", x1, y1, color)
renderer.draw_text(style.font, "version " .. VERSION, x1, y1 + th, color)
x = x + style.padding.x
renderer.draw_rect(x, y, math.ceil(1 * SCALE), dh, color)
local lines = {