Made layout icons changeable via theme.lua file (#165)

This commit is contained in:
Emily 2022-04-24 18:25:09 +02:00 committed by GitHub
parent fbb914a572
commit bc980b7dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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