Skip to content

Commit 1f24e26

Browse files
authored
Update vertical-bar-widget.lua
1 parent 0506bda commit 1f24e26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

volume-widget/widgets/vertical-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 10
1616
local margins = args.height or 2
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 {
@@ -38,7 +38,8 @@ function widget.get_widget(widgets_args)
3838
margins = { top = margins, bottom = margins },
3939
color = main_color,
4040
background_color = bg_color,
41-
shape = gears.shape[shape],
41+
shape = shape,
42+
bar_shape = shape,
4243
widget = wibox.widget.progressbar,
4344
},
4445
forced_width = width,

0 commit comments

Comments
 (0)