From 6e6ff93d29c55f641eefcfea2e9434c4bbdaae67 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 23 Jul 2020 15:08:14 +0200 Subject: [PATCH] Minor style --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index f314ae5..38b9bef 100644 --- a/init.lua +++ b/init.lua @@ -104,6 +104,7 @@ local FMT = { image = "image[%f,%f;%f,%f;%s]", button = "button[%f,%f;%f,%f;%s;%s]", tooltip = "tooltip[%f,%f;%f,%f;%s]", + hypertext = "hypertext[%f,%f;%f,%f;;%s]", item_image = "item_image[%f,%f;%f,%f;%s]", image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]", animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]", @@ -1174,8 +1175,8 @@ local function get_title_fs(query_item, lang_code, favs, fs, spacing) local t_desc = query_item t_desc = #t_desc > 40 and fmt("%s...", sub(t_desc, 1, 37)) or t_desc - fs[#fs + 1] = fmt("hypertext[9.05,%f;5.85,1.2;;%s]", - spacing - 0.1, + fs[#fs + 1] = fmt(FMT.hypertext, + 9.05, spacing - 0.1, 5.85, 1.2, fmt("" .. "%s\n", query_item, desc, t_desc)) @@ -1343,7 +1344,7 @@ local function make_fs(data) lbl = ES"Collect items to reveal more recipes" end - fs[#fs + 1] = fmt("hypertext[%f,%f;%f,%f;;%s]", + fs[#fs + 1] = fmt(FMT.hypertext, 0.05, 3, 8.29, 1, fmt("
]", translate(data.lang_code, lbl)))