Hi,
We've been redrawing the Web Entry Point so that we can have a different toolbar and a more traditional Menu Bar.
After extending some internal classes the behavior was achieved and both are created.
My doubt is on the selector to use for styling the Menu Bar!
First it doesn't seem to be affected by "Menu" selector. Also seeing the generated ID it gives "w4" so not much of a clue there.
To go around this we've added a CUSTOM_VARIANT, and using as selector "*.mainMenuBar" we've been able to set the background-color / image.
So which selector should we be using for this Main Menu?
The menu is being generated as:
protected void createMenubar(Composite theParent) {
Menu menu = new Menu(theParent.getShell(), SWT.BAR);
menu.setData(RWT.CUSTOM_VARIANT, VARIANT_MAIN_MENU_BAR);
RwtMenuUtility.fillContextMenu(getScoutObject().getMenus(), getUiEnvironment(), menu);
theParent.getShell().setMenuBar(menu);
}
Current CSS:
*.mainMenuBar {
background-image: gradient(linear, left top, left bottom, from(#ffffff), color-stop(52%, #e0e0e0), to(#b0b0b0));
}
[Updated on: Fri, 14 February 2014 11:55]
Report message to a moderator