Automatically reload style when saving the project user module

This commit is contained in:
Francesco Abbate
2020-12-10 17:56:53 +01:00
parent 6409b67ea2
commit 9114148b45
6 changed files with 72 additions and 19 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ local function draw_text(x, y, color)
local lines = {
{ fmt = "%s to run a command", cmd = "core:find-command" },
{ fmt = "%s to open a file from the project", cmd = "core:find-file" },
{ fmt = "%s to change project folder", cmd = "core:open-folder" },
{ fmt = "%s to change project folder", cmd = "core:change-project-folder" },
{ fmt = "%s to open a project folder", cmd = "core:open-project-folder" },
}
th = style.font:get_height()
y = y + (dh - (th + style.padding.y) * #lines) / 2