This commit is contained in:
Evgeny
2021-08-09 07:40:06 +03:00
parent 3226422f76
commit 180a495416
5 changed files with 59 additions and 2 deletions

View File

@@ -1,17 +0,0 @@
-- name = "Actions"
-- description = "Launcher actions widget"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_resume()
actions_names = { "Drawer", "Search", "Notify", "Menu" }
actions_colors = { md_colors.purple_800, md_colors.purple_600, md_colors.purple_400, md_colors.purple_300 }
actions = { "apps_menu", "search", "notify", "quick_menu" }
ui:show_buttons(actions_names, actions_colors)
end
function on_click(idx)
aio:do_action(actions[idx])
end