Files
aiolauncher_scripts/dev/aiocolors-widget.lua
2024-09-12 09:11:40 +03:00

23 lines
470 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- name = "AΙΟ colors"
-- type = "widget"
-- description = "Shows colors returned by aio:colors() function"
--foldable = "true"
-- author = "Theodor Galanis"
-- version = "1"
function on_resume()
local colors = aio:colors()
local colors_strings = stringify_table(colors)
ui:show_lines(colors_strings)
end
function stringify_table(tab)
local new_tab = {}
for k,v in pairs(tab) do
table.insert(new_tab, k..": "..tostring(v))
end
return new_tab
end