mirror of
https://github.com/Insality/druid
synced 2025-09-28 02:22:19 +02:00
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:
@@ -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
|
Reference in New Issue
Block a user