Skip to content

Commit 0506bda

Browse files
authored
Update horizontal-bar-widget.lua
1 parent 2a27e62 commit 0506bda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

volume-widget/widgets/horizontal-bar-widget.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function widget.get_widget(widgets_args)
1414
local bg_color = args.bg_color or '#ffffff11'
1515
local width = args.width or 50
1616
local margins = args.margins or 10
17-
local shape = args.shape or 'bar'
17+
local shape = args.shape or gears.shape.bar
1818
local with_icon = args.with_icon == true and true or false
1919

2020
local bar = wibox.widget {
@@ -36,7 +36,8 @@ function widget.get_widget(widgets_args)
3636
color = main_color,
3737
margins = { top = margins, bottom = margins },
3838
background_color = bg_color,
39-
shape = gears.shape[shape],
39+
shape = shape,
40+
bar_shape = shape,
4041
widget = wibox.widget.progressbar,
4142
},
4243
spacing = 4,

0 commit comments

Comments
 (0)