From bc980b7dfeb2fb731ec2591d64cd5747fa4d24d5 Mon Sep 17 00:00:00 2001 From: Emily <53254254+Aproxia-dev@users.noreply.github.com> Date: Sun, 24 Apr 2022 18:25:09 +0200 Subject: [PATCH] Made layout icons changeable via theme.lua file (#165) --- layout/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/init.lua b/layout/init.lua index 223d9d4..de30ed6 100644 --- a/layout/init.lua +++ b/layout/init.lua @@ -37,7 +37,9 @@ local layouts = { for _, layout_name in ipairs(layouts) do local icon_raw = get_layout_icon_path(layout_name) - beautiful["layout_" .. layout_name] = get_icon(icon_raw) + if beautiful["layout_" .. layout_name] == nil then + beautiful["layout_" .. layout_name] = get_icon(icon_raw) + end M[layout_name] = require(... .. "." .. layout_name) end