Announcement

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

    Themes: why two locations

    SmartGwt 2.4

    I don't understand why we can find themes in either smartgwt.jar(entrerpise, entrepriseblue and graphite )and smrtgwt-skins.jar (blackops, fleet, mobile, silverwave, simplicity and treefrog).
    Besides in which case should we use:
    <inherits name="com.smartgwt.SmartGwtNoTheme"/>

    Regards

    Alain

    #2
    I can partially help with that question.

    the use of the module SmartGWTNoTheme include all the SmartGWT resources, without any theme loading.

    This is due to the fact that the SmartGWT module include by default the enterprise theme.

    So if you want to include a theme, you will most likely use the NoTheme inherit + the graphique module inherit.

    example :
    <inherits name="com.smartgwt.SmartGwtNoTheme" />
    <inherits name="com.smartclient.theme.treefrog.TreeFrog"/>

    This is more or less explained in the SmartGWT Quick Guide.

    For the smartgwt-skins.jar i think it just contains more skins.

    Many posts related to this already exists in the forum. Try to use the search method next time, and you will get your answers ;)

    Cheers

    Comment


      #3
      Ok,as you said answer partially and thank you for it.
      I stay with my wondering about the two locations which is not critical but I like to understand the details of what I'm using.

      Have a good day
      Alain

      Comment


        #4
        Hello, I have not understand how to set the theme Graphite, this the file gwt.xml
        [CODE]
        <inherits name='com.google.gwt.user.User'/>
        <inherits name="com.google.gwt.core.Core"/>
        <inherits name="com.google.gwt.user.History"/>

        <!-- <inherits name="com.smartgwt.SmartGwtNoScript"/> -->
        <inherits name="com.smartgwt.tools.SmartGwtTools"/>

        <inherits name="com.smartclient.theme.graphite.Graphite"/>
        <!-- <inherits name="com.smartclient.theme.enterprise.EnterpriseResources"/>
        <inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlueResources"/>
        <inherits name="com.smartclient.theme.graphite.GraphiteResources"/>
        -->
        <inherits name="com.smartgwt.SmartGwt"/>
        [/ CODE]

        to index.html
        [CODE]
        <script type="text/javascript">
        document.write("<"+"script src=sc/skins/Graphite/load_skin.js?isc_version=7.1.js><"+"/script>");
        </script>
        [\ CODE]
        but does not work

        Comment

        Working...
        X