Cleanup main scripts

This commit is contained in:
Evgeny
2025-05-03 10:14:22 +08:00
parent b9d73171ed
commit d68ab0934f
3 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ function on_dialog_action(data)
end
function get_cal(y,m)
local color = ui:colors()
local color = aio:colors()
local events = get_my_events(y,m,0)
local from = os.time{year=y,month=m,day=1}
local tab = {
@@ -151,7 +151,7 @@ function get_cal(y,m)
end
function format_day(y,m,d,events)
local color = ui:colors()
local color = aio:colors()
local from = os.time{year=y,month=m,day=d,hour=0,min=0,sec=0}
local to = os.time{year=y,month=m,day=d,hour=23,min=59,sec=59}
local yes = false
@@ -261,7 +261,7 @@ function get_day_tab(events)
end
function get_lines(events)
local color = ui:colors()
local color = aio:colors()
local lines = {}
for i,v in ipairs(events) do
table.insert(lines,"<font color = \""..v[9].."\">•</font>")

View File

@@ -12,13 +12,13 @@ end
function on_network_result(result, code)
if code >= 200 and code < 299 then
text = ajson:get_value(result, "object string:text")
text = ajson:read(result, "object string:text")
ui:show_lines{ text }
end
end
function on_click()
if text ~= nil then
system:copy_to_clipboard(text)
system:to_clipboard(text)
end
end

View File

@@ -18,7 +18,7 @@ function on_alarm()
end
function redraw()
local color = ui:colors()
local color = aio:colors()
if unit == "temperature" then
sum = round(f[units[unit][unit_from]..units[unit][unit_to]](amount),3)
else