Update Amdroid Buttons widget
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
-- name = "Amdroid Buttons"
|
-- name = "Amdroid Buttons"
|
||||||
-- description = "Foldable AIO wrapper for the Amdroid next alarm app widget"
|
-- description = "Foldable AIO wrapper for the Amdroid Buttons app widget"
|
||||||
-- type = "widget"
|
-- type = "widget"
|
||||||
-- author = "Theodor Galanis"
|
-- author = "Theodor Galanis (t.me/TheodorGalanis)"
|
||||||
-- version = "1.05"
|
-- version = "1.10"
|
||||||
-- foldable = "true"
|
-- foldable = "true"
|
||||||
-- on_resume_when_folding = "true"
|
-- on_resume_when_folding = "true"
|
||||||
-- uses_app = "com.amdroidalarmclock.amdroid"
|
-- uses_app = "com.amdroidalarmclock.amdroid"
|
||||||
|
|
||||||
|
|
||||||
local prefs = require "prefs"
|
local prefs = require "prefs"
|
||||||
local indices = {1, 3, 4, 6, 8}
|
local indices = {1, 3, 4, 6, 8}
|
||||||
local next_alarm = ""
|
local next_alarm = ""
|
||||||
@@ -19,7 +18,6 @@ function on_resume()
|
|||||||
setup_app_widget()
|
setup_app_widget()
|
||||||
end
|
end
|
||||||
accent = aio:colors().accent
|
accent = aio:colors().accent
|
||||||
primary = aio:colors().primary_text
|
|
||||||
widgets:request_updates(prefs.wid)
|
widgets:request_updates(prefs.wid)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -76,7 +74,7 @@ ui:show_toast("Skip alarm's next occurance")
|
|||||||
end
|
end
|
||||||
|
|
||||||
function on_settings()
|
function on_settings()
|
||||||
ui:show_dialog("Amdroid app Buttons widget", "This script wrapper uses Amdroid app's Buttons widget. No settings are required.")
|
ui:show_dialog("Amdroid app Buttons widget", "This script wrapper uses Amdroid app's Buttons widget. Long click each button for function description. No settings are required.")
|
||||||
end
|
end
|
||||||
|
|
||||||
function setup_app_widget()
|
function setup_app_widget()
|
||||||
|
|||||||
Reference in New Issue
Block a user