layout icon paths refactored
This commit is contained in:
parent
45c9128be3
commit
916cafd8d9
|
@ -79,7 +79,7 @@ function mylayout.arrange(p)
|
|||
end
|
||||
end
|
||||
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/centered.png"
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/centered.png"
|
||||
|
||||
local function get_icon()
|
||||
if icon_raw ~= nil then
|
||||
|
|
|
@ -54,7 +54,7 @@ function mylayout.arrange(p)
|
|||
end
|
||||
end
|
||||
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/horizontal.png"
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/horizontal.png"
|
||||
|
||||
local function get_icon()
|
||||
if icon_raw ~= nil then
|
||||
|
|
|
@ -193,7 +193,7 @@ function mylayout.arrange(p)
|
|||
update_tabbar(slave_clients, t, t.top_idx, area, master_area_width, slave_area_width)
|
||||
end
|
||||
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/mstab.png"
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/mstab.png"
|
||||
|
||||
local function get_icon()
|
||||
if icon_raw ~= nil then
|
||||
|
|
|
@ -54,7 +54,7 @@ function mylayout.arrange(p)
|
|||
end
|
||||
end
|
||||
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/vertical.png"
|
||||
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/vertical.png"
|
||||
|
||||
local function get_icon()
|
||||
if icon_raw ~= nil then
|
||||
|
|
Loading…
Reference in New Issue