The issue is rather simple - when you change background color of a menu via

Menu {
background-color : #888888;
}

in the CSS file, the background of the menubar (the top level menu) stays white. I've tried to override the getBackground method of the parent shell, as Ralph suggested Menu retrieves its color from its parent's background. However, this does not work.

The only workaround I've come up with so far is appending a dummy menu at the end of the menubar with sufficiently long text and with appropriate CSS settings (font and background color the same, no change on hover, and disabled). This "solution" is rather ugly and a simple CSS setting affecting Menu with style BAR (that would be the menubar in question) is the perfect solution.

Hi Milko,
as already mentioned in the thread the menu bar styling is bound to...
toolbar (???!!! we really have to fix this). The following snippet works
for me and changes the background color of the menu bar:
ToolBar {
background-color : #888888;
}
Please open a bugzilla about this issue.
Thanks,
Ivan

On 8/12/2013 3:58 PM, Milko Krastev wrote:
> Hi Ivan,
>
> The issue is rather simple - when you change background color of a
> menu via
> Menu {
> background-color : #888888;
> }
>
> in the CSS file, the background of the menubar (the top level menu)
> stays white. I've tried to override the getBackground method of the
> parent shell, as Ralph suggested Menu retrieves its color from its
> parent's background. However, this does not work.
>
> The only workaround I've come up with so far is appending a dummy menu
> at the end of the menubar with sufficiently long text and with
> appropriate CSS settings (font and background color the same, no
> change on hover, and disabled). This "solution" is rather ugly and a
> simple CSS setting affecting Menu with style BAR (that would be the
> menubar in question) is the perfect solution.

On 8/12/2013 5:59 PM, Milko Krastev wrote:
> Hmmm ... you are right! The first time I must have typed Toolbar
> instead of ToolBar and that's why it didn't work. Problem solved.
> Thanks a lot for the help!