Hi,

On 20.11.2013 11:12, Dong Zhu wrote:
[...]
on awesome 3.5 I change the codes as below:
membar = awful.widget.progressbar()
membar:set_width(50)
membar:set_height(8)
membar:set_vertical(false)
membar:set_background_color("#3F3F3F")
membar:set_border_color(nil)
membar:set_color({ type = "linear", from = { 0, 0 }, to = { 10,0 }, stops = { {0, "#AECF96"}, {0.5, 
"#88A175"}, {1, "#FF5656"}}})
vicious.register(membar, vicious.widgets.mem, "$1", 13)
memwidget = wibox.widget.textbox()
memwidget.set_align("left")
vicious.register(memwidget, vicious.widgets.mem, "$2Mb", 5)

This "awful.widget.layout.margins[membar.widget] = { top = 8 }" seems
not work as expect and the membar is very very big.  How to make membar
> align with middle ?

Use the following to get a new widget with that margin:

memwidgetmargin = wibox.layout.margin()
memwidgetmargin:set_widget(memwidget)
memwidgetmargin:set_top(8)


Uli

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to