Hi,

On 10.01.2013 01:27, Shuuichi Nitori wrote:
> hi, I want to be able to change the background colour of mysystraybox and
> mylayoutbox, I can't do it with wibox.widget.backgound(), testing that I
> get this error, so that says to me this is not the way the background is
> set on this widgets:
> 
> /usr/share/awesome/lib/gears/debug.lua.23 : assertion failed: 'draw is not
> a function'
> stack traceback:
> /usr/share/awesome/lib/gearsdebug.lua:23: in function 'assert'
> /usr/share/awesome/widget/base.lua:113: in function 'check_widget'
> /usr/share/awesome/widget/background.lua:64: in function 'set_widget'
> /home/shuuichi/.config/awesome/rc.lua:438: in main chunk

What did you call set_widget() with?

> there is a way that I can custom the background colour in mysystray and
> mylayoutbox widgets?

Yes, use wibox.widget.background:

local mybackbox = wibox.widget.background()
mybackbox:set_widget(mylayoutbox)
mybackbox:set_bg("#ff0000")

(Now use "mybackbox" instead of "mylayoutbox" in your wibox)

However, this won't work with the systray because of X11. :-)
Use theme.bg_systray instead for this.

Uli
-- 
A learning experience is one of those things that say,
'You know that thing you just did? Don't do that.'
                     -- Douglas Adams

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

Reply via email to