Home » Eclipse Projects » Remote Application Platform (RAP) » Table themes
| | | |
Re: Table themes [message #774281 is a reply to message #771272] |
Tue, 03 January 2012 16:22   |
Edin Edin Messages: 101 Registered: January 2010 |
Senior Member |
|
|
Hello there, i have a similar question. I would also like to customize my theme, but sometime it works (i.E. for Buttons), and sometime it wont (ie MenuBar) Is there somewhere a list of all keywords, tha can be used in a custom theme.css (Button, TableItem, :hover, :selected,)? Does CSS3 work with RAP ?
There is also a theme editor in incubator, does it work well ? On which way i can get it to run ?
And last question is, how to customize the height of the TableHeaders? They are definitely looking to big for my own taste.
i'm using eclipse rap 1.5.0 M3
Best regards, Edin
|
|
|
Re: Table themes [message #774285 is a reply to message #771270] |
Tue, 03 January 2012 16:22   |
David Wegener Messages: 1445 Registered: July 2009 |
Senior Member |
|
|
Hello there, i have a similar question. I would also like to customize my theme, but sometime it works (i.E. for Buttons), and sometime it wont (ie MenuBar) Is there somewhere a list of all keywords, tha can be used in a custom theme.css (Button, TableItem, :hover, :selected,)? Does CSS3 work with RAP ?
There is also a theme editor in incubator, does it work well ? On which way i can get it to run ?
And last question is, how to customize the height of the TableHeaders? They are definitely looking to big for my own taste.
i'm using eclipse rap 1.5.0 M3
Best regards, Edin
|
|
| |
Re: Table themes [message #774569 is a reply to message #774281] |
Wed, 04 January 2012 07:43   |
Ivan Furnadjiev Messages: 2413 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
"RAP Theming Reference" is what you are looking for [1].
[1] http://help.eclipse.org/indigo/nav/49_3_2
Best,
Ivan
On 1/3/2012 6:22 PM, Missing name Mising name wrote:
> Hello there, i have a similar question. I would also like to customize
> my theme, but sometime it works (i.E. for Buttons), and sometime it
> wont (ie MenuBar) Is there somewhere a list of all keywords, tha can
> be used in a custom theme.css (Button, TableItem, :hover, :selected,)?
> Does CSS3 work with RAP ?
> There is also a theme editor in incubator, does it work well ? On
> which way i can get it to run ?
> And last question is, how to customize the height of the TableHeaders?
> They are definitely looking to big for my own taste.
>
> i'm using eclipse rap 1.5.0 M3
>
> Best regards, Edin
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Re: Table themes [message #775103 is a reply to message #774569] |
Thu, 05 January 2012 10:28   |
Edin Edin Messages: 101 Registered: January 2010 |
Senior Member |
|
|
Hey guys, thnx for your help,
that is exactly what im looking for (overview and posibillity to see how the actual default theme is defined). Anyway, when i try to change Menu element, it has no effect for me. It stays gray. Im actually working with standalone version of RAP 1.5. so i have to create the shell on my own, and then add Menu instance. The MenuItems are correctly changed.
In my css im using this:
Menu {
color: #FFFFFF;
background-color: #0099CC;
}
And the menu is created on this way:
this.shell = new Shell(Display.getCurrent(), SWT.NO_TRIM);
Menu menuBar = new Menu(shell, SWT.BAR); //this remains gray, css has no affect!
MenuItem mainMenuHeader = new MenuItem(menuBar, SWT.CASCADE); //this works fine!
ANy idea why?
Is there a posibillity for a Widget to get its theme settings programatically and change them on the runtime. For example i have TableItem and if table is editable then css pointer property should be different then if its not editable. Or just simply to change the color and backgroundcolor (without setting it over SWT SYSTEM COLOR)?
UPS SORRY, WRONG THREAD!!!!
[Updated on: Thu, 05 January 2012 10:29] Report message to a moderator
|
|
|
Re: Table themes [message #775105 is a reply to message #774569] |
Thu, 05 January 2012 10:28   |
Missing name Missing name Messages: 59 Registered: July 2009 |
Member |
|
|
Hey guys, thnx for your help,
that is exactly what im looking for (overview and posibillity to see how the actual default theme is defined). Anyway, when i try to change Menu element, it has no effect for me. It stays gray. Im actually working with standalone version of RAP 1.5. so i have to create the shell on my own, and then add Menu instance. The MenuItems are correctly changed.
In my css im using this:
Menu {
color: #FFFFFF;
background-color: #0099CC;
}
And the menu is created on this way:
this.shell = new Shell(Display.getCurrent(), SWT.NO_TRIM);
Menu menuBar = new Menu(shell, SWT.BAR); //this remains gray, css has no affect!
MenuItem mainMenuHeader = new MenuItem(menuBar, SWT.CASCADE); //this works fine!
ANy idea why?
Is there a posibillity for a Widget to get its theme settings programatically and change them on the runtime. For example i have TableItem and if table is editable then css pointer property should be different then if its not editable. Or just simply to change the color and backgroundcolor (without setting it over SWT SYSTEM COLOR)?
|
|
|
Re: Table themes [message #775239 is a reply to message #775105] |
Thu, 05 January 2012 16:01   |
Ivan Furnadjiev Messages: 2413 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
try to set the color and background-color of MenuItem:onMenuBar like:
MenuItem:onMenuBar {
color: #FFFFFF;
background-color: #0099CC;
}
If you want to change the CSS in runtime you could set/reset a custom
variant.
TableItem.blue {
background-color: blue;
}
TableItem.red{
background-color: red;
}
and:
if( editable ) {
item.setData( WidgetUtil.CUSTOM_VARIANT, "blue" );
} else {
item.setData( WidgetUtil.CUSTOM_VARIANT, "red" );
// or reset item.setData( WidgetUtil.CUSTOM_VARIANT, null );
}
Ofcourse, you could change the background color programmatically too -
TableItem#setBackground. Colors set by code override colors set by theming.
HTH,
Ivan
On 1/5/2012 12:28 PM, Missing name Mising name wrote:
> Hey guys, thnx for your help,
>
> that is exactly what im looking for (overview and posibillity to see
> how the actual default theme is defined). Anyway, when i try to change
> Menu element, it has no effect for me. It stays gray. Im actually
> working with standalone version of RAP 1.5. so i have to create the
> shell on my own, and then add Menu instance. The MenuItems are
> correctly changed.
> In my css im using this:
> Menu {
> color: #FFFFFF;
> background-color: #0099CC;
> }
>
> And the menu is created on this way:
> this.shell = new Shell(Display.getCurrent(), SWT.NO_TRIM);
> Menu menuBar = new Menu(shell, SWT.BAR); //this remains gray, css has
> no affect!
> MenuItem mainMenuHeader = new MenuItem(menuBar, SWT.CASCADE); //this
> works fine!
>
> ANy idea why?
>
> Is there a posibillity for a Widget to get its theme settings
> programatically and change them on the runtime. For example i have
> TableItem and if table is editable then css pointer property should be
> different then if its not editable. Or just simply to change the color
> and backgroundcolor (without setting it over SWT SYSTEM COLOR)?
>
>
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
| |
Goto Forum:
Current Time: Thu Jun 08 19:58:34 GMT 2023
Powered by FUDForum. Page generated in 0.03106 seconds
|