Announcement

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

    Creating custom skin

    hi guys

    i need to create a custom smartGWT skin (basing on the Enterprise-skin). i've already found some documentation saying that i should copy the skin which matches the closest and change the parts i wanna change. but how can i use this new skin? and where do i have to place it (the files in the filesystem)?

    my projectname.gwt.xml contains these two lines (among others)
    <inherits name='com.smartgwt.SmartGwt' />
    <inherits name="com.smartclient.theme.enterprise.Enterprise" />

    how can i define that my new skin should be loaded?

    thanks for your help
    best regards. sebastian

    ------ EDIT ----------------
    i've tried some things till now (again). think my only remaining problem is defining the theme which should be used for displaying. building the project and accessing files of my new skin via http works right now. so probably the problem is inside my projectname.gwt.xml. how do i define the skin which should be used? right now the enterprise theme is loaded. even when i removed <inherits name="com.smartclient.theme.enterprise.Enterprise" /> from the xml file. right now i've replaced the Enterprise line so my theme is deployed too.

    <inherits name='com.smartgwt.SmartGwt' />
    <inherits name="com.dkv.theme.stationfinder.Stationfinder" />

    think the enterprise theme is the default theme which is shipped through the smartgwt-2.0.jar. i'm grateful for any hint.

    again, best regards. sebastian
    Last edited by ssd-001; 18 Mar 2010, 03:02.

    #2
    You are loading the standard SmartGWT module, which will by default load the enterprise theme, and it will take place.

    to tell ur application that you don't want to load a theme , inherit SmartGWTNoTheme instead of SmartGWT, as the following :

    <inherits name='com.smartgwt.SmartGwtNoTheme' />
    <inherits name="com.dkv.theme.stationfinder.Stationfinder" />

    hope that helps.

    Comment


      #3
      Can we customize Enterprise theme for commercial application?

      If we create a copy of Enterprise them and modify it and all it's content with name say "MyTheme" and use it for commercial application then is there any license violation?

      Please note that customized Enterprise skin would be packaged in separate jar say smartgwt-my-skin.jar!

      If yes then what needs to be done so that license is not violated.

      Thanking you,
      Jayesh

      Comment

      Working...
      X