Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom Theme Override(custom theme to override business theme)
Custom Theme Override [message #806049] Fri, 24 February 2012 13:36 Go to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
hello,

we're working on latest build RAP 1.5 M5.
we have customized the look'n feel using our custom-theme(css file), which extends the business-theme.

with 1.5 M5, our custom-theme, by default extends the RAP default-theme shipped (I call BIG-THEME), hence our widgets and controls are in a disarray.

our requirement is to apply business-theme in core and extend it with our custom-theme.
hence, we shall preserve the UI consistency, we've achieved so far.

let us know, if there's a workaround exist ?

thanks,
sudesh bulathsinhala
Re: Custom Theme Override [message #806273 is a reply to message #806049] Fri, 24 February 2012 19:32 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

Hi Sudesh,

we've changed the fallback for the theming in M5 exactly for this reason
- to make custom themes independent from changes to the default theme.
All theme properties have fixed default values now.

However, if you extend an existing theme, you should register a theme
contribution to this theme instead of creating a custom theme.

HTH, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Custom Theme Override [message #807239 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807245 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807250 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807255 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807260 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807265 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #807270 is a reply to message #806273] Sun, 26 February 2012 06:19 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 180
Registered: October 2010
Senior Member
Hello Ralf,

Registering a theme contribution, worked !!!

Thanks,
Sudesh Bulathsinhala
Re: Custom Theme Override [message #999219 is a reply to message #806273] Fri, 11 January 2013 15:26 Go to previous messageGo to next message
Michael Grossmann is currently offline Michael GrossmannFriend
Messages: 2
Registered: January 2013
Junior Member
Is it possible to add a theme contribution for an standalone rwt application as described here:
http://www.eclipse.org/rap/developers-guide/devguide.php?topic=advanced/rwt-standalone.html&version=1.5

I only figgured out how set a complete theme for standalone rwt applications:

final Map<String, String> properties = new HashMap<String, String>();
properties.put(WebClient.THEME_ID, "my.theme.id");
application.addEntryPoint("/MyApp", MyApp.class, properties);

Re: Custom Theme Override [message #999573 is a reply to message #999219] Sat, 12 January 2013 14:03 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1872
Registered: July 2009
Senior Member
Hi Michael,
application.addStyleSheet(<existing_theme_id>, <CSS file>);
HTH,
Ivan

On 1/11/2013 9:14 PM, Michael Grossmann wrote:
> Is it possible to add a theme contribution for an standalone rwt
> application as described here:
> http://www.eclipse.org/rap/developers-guide/devguide.php?topic=advanced/rwt-standalone.html&version=1.5
>
> I only figgured out how set a complete theme for standalone rwt
> applications:
>
> final Map<String, String> properties = new HashMap<String, String>();
> properties.put(WebClient.THEME_ID, "my.theme.id");
> application.addEntryPoint("/MyApp", MyApp.class, properties);
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:How to open a new tab in the same browser RAP is running in?
Next Topic:plugin.xml, i18n and umlauts
Goto Forum:
  


Current Time: Thu Dec 18 21:09:34 GMT 2014

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software