Added support for desktop_icon_label_button

This commit is contained in:
Grizzly Adam 2018-02-20 17:04:16 -06:00 committed by Alexander Weber
parent 7e46231c5f
commit 0462876f00

View File

@ -40,7 +40,7 @@ laptop.register_app("launcher", {
local x = math.floor((i-1) / c_row_count)*2 + 1
local y = ((i-1) % c_row_count)*2 + 1
out = out .. mtos.theme:get_image_button(x..','..y..';1,1', 'app', e.name, (e.def.app_icon or 'logo.png'), "", (e.def.app_info or e.name))..
mtos.theme:get_label((x-0.3)..','..(y+1), e.def.app_name, "app")
mtos.theme:get_image_button((x-.5)..','..(y+1.08)..';2,.4', 'app', e.name, mtos.theme.desktop_icon_label_button , e.def.app_name)
end
out = out..mtos.theme:get_button(mtos.theme.taskbar_clock_position_and_size, "major", "os_clock", os.date("%c"))
return out