add(theme) bar_bg

This commit is contained in:
Aire-One 2021-12-26 17:19:13 +01:00
parent f2b0f9708f
commit 588c4f241c
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ theme.padding = 4
theme.bar_height = 32 + (theme.margin * 2) -- This is the outer size of the bar
theme.bar_width = "80%" -- Make the bar size relative to the screen
theme.bar_bg = "#263238D9"
theme.bar_margin_x = theme.margin * 2
theme.bar_margin_y = theme.margin
theme.bar_padding_x = theme.padding * 2

View File

@ -224,7 +224,7 @@ function bar.new(screen)
left = dpi(beautiful.bar_padding_x, screen),
widget = container_margin,
},
bg = "#263238D9",
bg = beautiful.bar_bg,
shape = function(cr, width, height)
gshape.rounded_rect(cr, width, height, 10)
end,