mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
theme: add menu.overlap.{x,y}
This commit is contained in:
parent
cd31283ba3
commit
dd1663e627
5 changed files with 30 additions and 5 deletions
|
|
@ -276,6 +276,8 @@ err:
|
|||
static void
|
||||
menu_configure(struct menu *menu, int x, int y)
|
||||
{
|
||||
struct theme *theme = menu->server->theme;
|
||||
|
||||
menu->box.x = x;
|
||||
menu->box.y = y;
|
||||
|
||||
|
|
@ -286,10 +288,9 @@ menu_configure(struct menu *menu, int x, int y)
|
|||
menuitem->box.y = menu->box.y + offset;
|
||||
offset += menuitem->box.height;
|
||||
if (menuitem->submenu) {
|
||||
/* TODO: add offset to rc.xml */
|
||||
menu_configure(menuitem->submenu,
|
||||
menuitem->box.x + MENUWIDTH + 10,
|
||||
menuitem->box.y);
|
||||
menu_configure(menuitem->submenu, menuitem->box.x
|
||||
+ MENUWIDTH - theme->menu_overlap_x,
|
||||
menuitem->box.y + theme->menu_overlap_y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue