Feature/progress (#17)

* improve example gui. Add simple pages

* return old progress bar with example

* base progress with steps, there is bug with step? 1 ~= 1, small delta?

* polish progress, check float error case

* add callback on end of "to" function, value check

* start of green/red in progress

* add first version of rich progress bar

* make green bar darker

* rich bar fixes

* add delay, before filling in rich progress

* PR fixes

* remove dublicate of 'progress_rich'
This commit is contained in:
Maxim Tuprikov
2019-04-03 23:23:06 +03:00
committed by GitHub
parent 6f41f70803
commit d49cd2777e
18 changed files with 1382 additions and 63 deletions

View File

@@ -1,11 +1,10 @@
local data = require("druid.data")
local settings = require("druid.settings")
local helper = require("druid.helper.helper")
local helper = require("druid.helper")
local M = {}
M.interest = {
data.TRANSLATABLE,
data.LAYOUT_CHANGED
}
@@ -82,15 +81,4 @@ function M.set_scale(instance, scale)
end
--- Called when layout updated (rotate for example)
function M.on_layout_updated(instance)
if instance.last_color then
M.set_color(instance, instance.last_color)
end
if instance.last_scale then
M.set_scale(instance, instance.last_scale)
end
end
return M