Skin modifications

Hi,

I tried to modify the entreprise skin (passing window’s borders & icons into orange) renaming it as Able, updating the load_skin.js as the documentation said, but i still have the original pictures of the theme.

In my gwt application html i wrote :

<script> var isomorphicDir = "ndf/sc/"; </script>
<script> var currentSkin = "Able";</script>
<script language="javascript" src="ndf/sc/skins/Able/load_skin.js"></script>

I put the “able orange” copy of Entreprise theme in the public diectory of the gwt project : public/sc/skins/Able/…

Did i forget something ?

Thank you :slight_smile:

Did your modul inherit
<inherits name=“com.smartgwt.SmartGwtNoScript”/>

Check that you don’t inherit SmartGWT or SmartGwtDebug modules, because they load the default skin

You were right :slight_smile:

SmartGwtNoScript was really the module to import :slight_smile:

Thank you !

Hi, sorry if it is stupid, i tried everithing here to load treefrog skin and i couldn’t do it.

in my xml file i have
<inherits name=“com.smartgwt.SmartGwtNoScript” />

and my html i have
<script language=“javascript” src=“sc/skins/TreeFrog/load_skin.js”></script>

just after
<script type=“text/javascript” language=‘javascript’ src=‘net.efectoByte.rrhh.nocache.js’></script>

when i run app i get:

[ERROR] Unable to load module entry point class net.efectoByte.rrhh.client.NestingSample (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc has no properties
fileName: jar:file:/home/joli/smartgwt-1.1/smartgwt.jar!/com/smartgwt/client/widgets/BaseWidget.java
lineNumber: 50
stack: ()@jar:file:/home/joli/smartgwt-1.1/smartgwt.jar!/com/smartgwt/client/widgets/BaseWidget.java:50
gwtOnLoad([object Window],“net.efectoByte.rrhh”,“1.6”)@:0
gwtOnLoad((function () {alert(“Failed to load module net.efectoByte.rrhh".
Please see the log in the development shell for details.”);}),“net.efectoByte.rrhh”,“http://localhost:8888/net.efectoByte.rrhh/”)@http://localhost:8888/net.efectoByte.rrhh/hosted.html?net_efectoByte_rrhh:20
maybeStartModule()@http://localhost:8888/net.efectoByte.rrhh/net.efectoByte.rrhh.nocache.js:98
()@http://localhost:8888/net.efectoByte.rrhh/net.efectoByte.rrhh.nocache.js:352
@http://localhost:8888/net.efectoByte.rrhh/hosted.html?net_efectoByte_rrhh:39

what could be wrong? Thanks a lot for your help!
i forgot to mention that i have sc folder under public folder with the hole treefrog skin

If you inherit SmartGwtNoScript, you need to add the smartclient js script includes yourself in the host html file. See the Showcase.html file from the distribution.

thanks for your answer, I just change from

<inherits name=“com.smartgwt.SmartGwtNoScript” />

to

<inherits name=“com.smartgwt.SmartGwt” />

and treefrog load perfectly. The problem of “solving” a problem without knowing why is another bigger problem. I mean… every post says that if i want to load another skin (not default one) i don’t have to inherits SmartGwt

The SmartGwt module loads the Enterprise theme by default. By using this along with TreeFrog, you could run into some collisions and reports of some images missing.

Probably easiest for you to inherit

com.smartgwt.SmartGwtNoTheme (this loads the smartclient js only) and

com.smartclient.theme.treefrog.TreeFrog to load the TreeFrog theme. No need for you add

<script language=“javascript” src=“sc/skins/TreeFrog/load_skin.js”></script>

I really thanks for your advice dev