How to change theme

Hi all

I know this question has been asked many time in this forum, and I’ve read them all, but none of them worked for me.

So i’ve included the smartgwt.jar and smartgwt-skins.jar files in the classpath, and modified my gwt.xml file to the following

<module>

&lt;!-- Inherit the core Web Toolkit stuff.                        --&gt;
&lt;inherits name='com.google.gwt.user.User' /&gt;
&lt;inherits name='com.gwt.Gwt' /&gt;
&lt;inherits name='com.gwt.rebind.Rebind' /&gt;

&lt;inherits name="com.smartgwt.SmartGwt" /&gt;

<!-- <inherits name=“com.smartgwt.SmartGwtNoScript” />–>
<!-- <inherits name=“com.smartclient.SmartClientDefault”/>–>
<!-- <inherits name=“com.smartclient.theme.enterprise.EnterpriseResources” />–>
<!-- <inherits name=“com.smartclient.theme.blackops.BlackOpsResources” />–>
<inherits name=“com.smartclient.theme.silverwave.SilverWaveResources” />
<!-- <inherits name=“com.smartclient.theme.treefrog.TreeFrogResources” />–>
<!-- <inherits name=“com.smartclient.theme.fleet.FleetResources” />–>

&lt;!-- Inherit the default GWT style sheet.  You can change       --&gt;
&lt;!-- the theme of your GWT application by uncommenting          --&gt;
&lt;!-- any one of the following lines.                            --&gt;

<!-- <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’/> –>

&lt;!-- Specify the app entry point class.                         --&gt;
&lt;entry-point class='com.gwt.cisternroi.client.Admin' /&gt;

</module>

but when i started the hosted mode, the theme is still defaulted to the Enterprise one even though I specified it to use SilverWave… May someone please help me with this problem? Thanks so much

Hi,

You have to change the skin from the html file in the public folder of your module.

Hi

is that the only way to modify the theme?
thanks for the help.. please let me know.

The com.smartgwt.SmartGwt module includes the Enterprise theme by default. You can do what the showcase example does. ie. inherit com.smartgwt.SmartGwtNoScript and com.smartclient.theme.silverwave.SilverWaveResources and then manually add the script includes and load the skin.

We’ll add com.smartgwt.SmartGwtNoTheme module that only includes the scripts so that what you’re currently doing works.

Hello,

I have tried this but not got it working my gwt.xml now has:

&lt;inherits name="com.smartgwtee.SmartGwtEENoTheme"/&gt;
&lt;inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue"/&gt;

No discernible difference. What am I missing?

Thanks, Mark.

How to correctly change themes is explained in the QuickStart Guide. Be sure to rerun a GWT compile any time you change your .gwt.xml, and be sure also to clear your browser cache.

Hello,

I have it working now. I had to explicitly clear my browser cache (Chrome). Pressing Ctrl-F5 did not seem to help.

Thanks very much.