add(bar) Center the taglist widget
Use `expand = 'outside'` on the bar main align layout to correctly center the taglist widget, and use more place containers to align all the widget groups.
This commit is contained in:
parent
4c411d1af0
commit
b1b459d60f
|
@ -176,8 +176,13 @@ function bar.new (screen)
|
|||
{
|
||||
-- Bar content
|
||||
layout = layout_align.horizontal,
|
||||
expand = 'outside',
|
||||
{
|
||||
-- Left side of the bar, box margins
|
||||
-- Left side of the bar, align on the left
|
||||
widget = container_place,
|
||||
halign = "left",
|
||||
{
|
||||
-- box margins
|
||||
widget = container_margin,
|
||||
top = dpi(beautiful.bar_box_margin_y, screen),
|
||||
bottom = dpi(beautiful.bar_box_margin_y, screen),
|
||||
|
@ -190,6 +195,7 @@ function bar.new (screen)
|
|||
my_bar.launcher,
|
||||
my_bar.promptbox
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
-- Middle widget is the custom taglist
|
||||
|
@ -199,7 +205,11 @@ function bar.new (screen)
|
|||
my_bar.taglist
|
||||
},
|
||||
{
|
||||
-- Right side of the bar, box margins
|
||||
-- Right side of the bar, align on the right
|
||||
widget = container_place,
|
||||
halign = "right",
|
||||
{
|
||||
-- box margins
|
||||
widget = container_margin,
|
||||
top = dpi(beautiful.bar_box_margin_y, screen),
|
||||
bottom = dpi(beautiful.bar_box_margin_y, screen),
|
||||
|
@ -218,6 +228,7 @@ function bar.new (screen)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return my_bar
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue