-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.lua
More file actions
32 lines (28 loc) · 733 Bytes
/
ui.lua
File metadata and controls
32 lines (28 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local wibox = require "wibox"
-- Import Ctrl modules
local config = require "ctrl.config"
local ui = {}
-- Text widget.
ui.text = {
text = '',
font = config.font,
align = config.align,
widget = wibox.widget.textbox
}
-- Progressbar.
ui.bar = {
max_value = config.max_value,
value = config.value,
forced_height = config.height,
forced_width = config.width,
step = config.step,
paddings = config.padding,
border_width = config.border_width,
border_color = config.border_color,
paddings = config.padding,
margins = config.margin,
shape = config.shape,
bar_shape = config.bar_shape,
widget = config.widget
}
return ui