update simple widgets to new widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f885b8e954
commit
a7c5668a92
|
@ -217,6 +217,7 @@ function new(args)
|
|||
local graph = {}
|
||||
graph.widget = capi.widget(args)
|
||||
graph.widget.resize = false
|
||||
graph[1] = graph.widget
|
||||
|
||||
data[graph] = { width = width, height = height, values = {}, max_value = 1 }
|
||||
|
||||
|
|
|
@ -170,6 +170,7 @@ function new(args)
|
|||
|
||||
pbar.widget = capi.widget(args)
|
||||
pbar.widget.resize = false
|
||||
pbar[1] = pbar.widget
|
||||
|
||||
data[pbar] = { width = width, height = height, value = 0 }
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ function new(args)
|
|||
args.type = "textbox"
|
||||
promptbox.widget = capi.widget(args)
|
||||
promptbox.widget.ellipsize = "start"
|
||||
promptbox[1] = promptbox.widget
|
||||
promptbox.run = run
|
||||
promptbox.prompt = args.prompt or "Run: "
|
||||
promptbox.layout = args.layout or layout.horizontal.leftright
|
||||
|
|
Loading…
Reference in New Issue