Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how do i change skin ?

    hi all,

    i was using the default silverwave theme and i want to switch to treefrog.

    i followed one of the post in this forum and used :

    <inherits name="com.smartgwt.SmartGwtNoScript" />
    <inherits name="com.smartgwt.SmartClientDefault"/>
    <inherits name="com.smartgwt.theme.treefrog.TreeFrog"/>


    but it gives error:

    [ERROR] Unable to find 'com/smartclient/SmartClientDefault.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?



    what should i do from here? thanks

    #2
    unsure if this is the best way to do it but it works for me.
    In your applications XML:

    Code:
    <inherits name="com.smartgwt.SmartGwtNoScript"/>
    and then i throw this into the html

    Code:
    <script>var isomorphicDir = "sc/"</script>	
    <script src=sc/modules/ISC_Core.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Foundation.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Containers.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Grids.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Forms.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_RichTextEditor.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Calendar.js?isc_version=7.0beta.js></script>		
    <script src=sc/modules/ISC_DataBinding.js?isc_version=7.0beta.js></script>		
    <script src=sc/skins/treefrog/load_skin.js></script>
    and of course copy out the sc dir into your public/ from the smartgwt showcase or somewhere :)

    Comment


      #3
      may i know where is sc folder? i can't find it inside smartgwt1.0b1

      Comment


        #4
        ok found it...

        window search functions can't be trusted =.=

        Comment


          #5
          thanks for your advice. but it doesn't work for me.

          the skin remains as default silverwave.

          does anyone knows how to change the skin? and why don't the smartgwt team change the default skin ? personally i feel that other skins looks much better.

          thank you.

          Comment


            #6
            Code:
            <script src=sc/skins/treefrog/load_skin.js></script>
            might not be correct i just did that off the top of my head
            check that that is correct for what you copy

            current default skin is now enterprise which is nicer
            not sure if its in the official build though

            Comment


              #7
              This thread might help you. See the last post on the page:

              http://forums.smartclient.com/showthread.php?t=3030&page=3

              Comment

              Working...
              X