On Wed, Nov 20, 2013 at 07:04:21PM +0100, Uli Schlachter wrote:
> 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)
> 
> 

I did as you said, but unfortunately it didn't work.

-- 
Best Regards,
Dong Zhu

MySite: http://bluezd.info

-- 
To unsubscribe, send mail to [email protected].

Reply via email to