Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » business.theme and CoolItem background issue(cant modify the background of coolitem when using this them)
business.theme and CoolItem background issue [message #906662] Sun, 02 September 2012 02:02 Go to next message
Nir Zinger is currently offline Nir Zinger
Messages: 5
Registered: July 2012
Junior Member
Hi,
at first I used my own theme which used my own CSS.
the CSS worked fine.. but I had some issues with the size of the application (RAP Widget are bigger then SWT's).
so i decided to use the org.eclipse.rap.design.example.business.theme.

The problem is that CoolBar that created this way:
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
      Control coolBar = configurer.createCoolBarControl(parent);


is creating CoolItems with white background. and I cant find a way to modify the background.
CSS not affecting it... or any other "magics" I tried.
is it a bug? or I miss something ?

im new to CSS also, but as it worked in my private theme, i dont see why it shouldnt work here.
here is the simple CSS I use for testing this.

ToolBar {
  background-color: transparent;
}	

ToolItem {
  background-color: transparent;
}	

CoolBar {
  background-color: transparent;
}	

CoolItem {
  background-color: transparent;
}	
Re: business.theme and CoolItem background issue [message #906894 is a reply to message #906662] Sun, 02 September 2012 18:07 Go to previous message
Chris Fairhall is currently offline Chris Fairhall
Messages: 99
Registered: February 2011
Member
There doesn't seem to be any theme definition for CoolItem {}.
Make sure the controls you're setting with CoolItem.setControl aren't setting their own background colours.
The business theme also has come custom variants specific to the Workbench
Previous Topic:The RAP can access office
Next Topic:Tycho build of feature including RAP
Goto Forum:
  


Current Time: Wed Aug 27 07:19:57 EDT 2014

Powered by FUDForum. Page generated in 0.01993 seconds