Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Appearance in GWT

I started working with GWT and I have to change the total appearance of the components. I found the "Appearance Pattern" and some explanation, but there is not a good example. I looked this url: https://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets and the best explanaition that I found was with GXT library in http://www.sencha.com/blog/ext-gwt-3-appearance-design.

My question is: Is there a better example of how to change the appearance (like the GXT tutorial) but using only GWT, without any libraries ???

If someone knows about this theme, please help me! Thank you.

like image 825
Milena Avatar asked Nov 30 '25 21:11

Milena


1 Answers

By appearance, if you mean color theme, you can change or remove the default theme in your PROJECTNAME.gwt.xml file. Changing/removing this will respectively change/remove the CSS stylesheet that gets automatically attached to your application.

The default is:

<inherits name='com.google.gwt.user.theme.clean.Clean'/>

You can change it to one of the following themes:

  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
  <inherits name='com.google.gwt.user.theme.chrome.Chrome'/>
  <inherits name='com.google.gwt.user.theme.dark.Dark'/>

Or remove / comment those lines altogether.

like image 158
Churro Avatar answered Dec 03 '25 09:12

Churro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!