diff --git a/main/calendar.lua b/main/calendar.lua index 893a751..cbde23d 100644 --- a/main/calendar.lua +++ b/main/calendar.lua @@ -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,"") diff --git a/main/facts-widget.lua b/main/facts-widget.lua index 396c493..8f79205 100644 --- a/main/facts-widget.lua +++ b/main/facts-widget.lua @@ -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 diff --git a/main/unit-converter.lua b/main/unit-converter.lua index 9ee72b8..20d25f2 100644 --- a/main/unit-converter.lua +++ b/main/unit-converter.lua @@ -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