awesome | 2 Mar 22:20 2011

[awesome bugs] #591 - Rewrite awful.menu using widget layout

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#591 - Rewrite awful.menu using widget layout
User who did this - dodo (dodo)

----------
i don't know if this is still needed, but i wrote a rewrite of awful.menu

https://github.com/dodo/uzful/blob/master/menu/rewrite.lua

if you like i can generate a patch for you.

there are currently some dirty hacks in it:
- i doesn't found a possibility to get the full size of all widgets in a layout or the position of a widget in a layout
  so i 'hard-coded' it → https://github.com/dodo/uzful/blob/master/menu/rewrite.lua#L141https://github.com/dodo/uzful/blob/master/menu/rewrite.lua#L103
- i added code to the wibox.widget.background widget to set the foreground color (not really dirty i guess :p)
- xpm images causing errors → disabled: https://github.com/dodo/uzful/blob/master/menu/rewrite.lua#L494

new features:
- cleaner code (i suppose)
- better theme inheritance for menus
- menu entries are theme-able
- user can build his own menu entry constructor (so different menu entries are possible)
- only one wibox per menu will be used
- menu entry cmd function gets the menu and menu entry as arguments (so changing the menu or menu entry by
clicking it is possible)
- menu entries are deletable (even by user)
(Continue reading)


Gmane