MenuBar background color [message #676711] |
Mon, 06 June 2011 05:32  |
Eclipse User |
|
|
|
Hi,
how can I change the background color of a Menubar ?. I can change the color of a MenuItem and the Menu itself with CSS but not in the menubar. I have always a white background.
Best Regards,
Jens
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: MenuBar background color [message #1085116 is a reply to message #1085100] |
Mon, 12 August 2013 09:24   |
Eclipse User |
|
|
|
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.
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
Re: MenuBar background color [message #1709453 is a reply to message #1085757] |
Mon, 28 September 2015 09:51  |
Eclipse User |
|
|
|
Hello All,
I am trying css for my rcp 3.7 application and i am using eclipse indigo IDE.
But below approach is not working for me. Need Help.
below is my plug-in:
<extension
id="productId"
point="org.eclipse.core.runtime.products">
<product
application="myApp.perspective.application"
name="RCP App">
<property
name="appName"
value="RCP App">
</property>
<property
name="applicationCSS"
value="platform:/config/default.css">
</property>
</product>
</extension>
CSS:-
@CHARSET "ISO-8859-1";
MenuItem {
background-color: red;
}
Menu[BAR] {
background-color: red;
}
CTabItem, Label, Tree, Text {
font-family: "Arial";
}
Shell {
font-size: 12;
background-color: red;
}
CTabItem, ToolBar, Button, CBanner, CoolBar {
font-size: 9;
background-color: red;
}
CTabFolder, CTabItem {
background-color: #F0F1F7;
}
|
|
|
Powered by
FUDForum. Page generated in 0.08158 seconds