remove legacy host_width

This commit is contained in:
Franziska Kunsmann 2024-02-13 08:59:43 +01:00
parent 5d58fdc6f0
commit 7e4ad9b42e

View file

@ -53,16 +53,11 @@ function node.render()
end end
local title_width = CONFIG.header_font:width(titlebar, CONFIG.output_size) local title_width = CONFIG.header_font:width(titlebar, CONFIG.output_size)
local host_width = 0
transform() transform()
CONFIG.background_color.clear() CONFIG.background_color.clear()
CONFIG.header_font:write(real_width/2-title_width/2, CONFIG.output_size*0.5, titlebar, CONFIG.output_size, 1,1,1,1) CONFIG.header_font:write(real_width/2-title_width/2, CONFIG.output_size*0.5, titlebar, CONFIG.output_size, 1,1,1,1)
for idx, service in ipairs(services.services) do
host_width = math.max(host_width, CONFIG.header_font:width(service.host, CONFIG.header_size))
end
local y = CONFIG.output_size*2 local y = CONFIG.output_size*2
for idx, serv in ipairs(services.services) do for idx, serv in ipairs(services.services) do
header_font_size = CONFIG.header_size header_font_size = CONFIG.header_size