1. #1
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default ext.ux.theme.slate.Slate

    ext.ux.theme.slate.Slate


    Recent Update : 2008-12-18 slate theme now included in ExtGWT download
    Recent Update : 2008-07-26 fixed CSS progressbar bugs

    Slate theme bundled in an easy to use jar file... credit and lic goes to http://extjs.com/learn/Extension:SlateTheme

    Warning : GWT/GXT users, don't follow instructions in credit link above - instructions below are for correct use...

    Just add
    Code:
    <inherits name='ext.ux.theme.slate.Slate'/>
    to your gwt.xml

    and add the jar file to your classpath

    Enable in code by adding this before rendering (ie top or close to onModuleLoad)
    Code:
    ThemeManager.register(Slate.SLATE);
    enjoy !!

  2. #2
    Ext User
    Join Date
    Jul 2008
    Posts
    32
    Vote Rating
    0
    mindstream is on a distinguished road

      0  

    Default Thanks!

    Thanks!


    Thanks alot. That is very helpful. And it serves as a nice model for packaging custom themes in general.

    Much appreciated.

  3. #3
    Ext GWT Premium Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    80
    Vote Rating
    0
    Cypher is on a distinguished road

      0  

    Default


    +1, gslender, I just tested it and it works great!

    I have just 2 (minor) notes:
    - the attached file is "JAR in a ZIP in a ZIP" kind of file...nevermind...we got it;
    - in order to use this theme, one has to also add the following line to java code:
    import ext.ux.theme.slate.client.Slate;

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Cypher View Post
    - the attached file is "JAR in a ZIP in a ZIP" kind of file...nevermind...we got it;
    the reason for that is - the forum doesn't let you attach JAR files.... darrell, if you can get that changed it would be nice ;-)

  5. #5
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    recent update 26/7 - fixed CSS bug regarding progressbar

  6. #6
    Ext JS Premium Member jadrake75's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Vote Rating
    4
    jadrake75 is on a distinguished road

      0  

    Default Invalid zip file?

    Invalid zip file?


    If you have trouble opening the .zip on Windows (if you used MSIE 7 to download it) try Firefox. I was unable to extract the SlateTheme.jar file using Windows Vista, 7-Zip or even gunzip/java (on Linux). At least gunzip gave some useful output:

    Archive: slate.zip
    warning [slate.zip]: 20 extra bytes at beginning or within zipfile
    (attempting to process anyway)
    file #1: bad zipfile offset (local header sig): 20
    (attempting to re-compensate)
    file #1: bad zipfile offset (local header sig): 20

    However using Firefox I was able to get the file. Perhaps IE is inserting extra characters?

  7. #7
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    the slate theme is now included in the ExtGWT release - so this extension is no longer needed

  8. #8
    Ext GWT Premium Member
    Join Date
    Dec 2008
    Location
    youtah
    Posts
    7
    Vote Rating
    0
    tbadger is on a distinguished road

      0  

    Default How to use slate theme

    How to use slate theme


    So, If I wanted to use the slate theme that is now included in ext gwt, how would I go about doing so?

  9. #9
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    include this in your gwt.xml
    Code:
    	<inherits name='com.extjs.gxt.themes.Themes' />
    include this before any GXT code
    Code:
    		 ThemeManager.register(Slate.SLATE);
    		 GXT.setDefaultTheme(Slate.SLATE, true);

  10. #10
    Ext User
    Join Date
    Dec 2008
    Posts
    2
    Vote Rating
    0
    tnyugen is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    the slate theme is now included in the ExtGWT release - so this extension is no longer needed
    Hi gslender,
    Is this the official word from ExtGWT or just a speculation? We convinced management / legal to go with ExtGWT after a great deal of pursuing (in light of all the controversies at the time). The request finally went through and we're well on our way and are happy with the results.

    Please for the love of god do not introduce any other possible licensing issues!! I don't care if CCA is allowed with GPL or not. It's a gray area and we will have to immediately cease using ExtGWT if this or any similar change is made.

    On this thread Darell mentions the explicit removal of Slate due to licensing issues.

    http://extjs.com/forum/showthread.php?t=40807

    Why on earth would you re-introduce it into ExtGWT now. It's a separate user created bundle unaffiliated with ExtGWT currently. Users who are confident on using it with ExtGWT can do so. I don't see the problem with this. We (our company) simply cannot afford to be put in a position of liability unless ExtGWT's license explicitly covers us from indemnification. GPL certainly doesn't cover this.

    Can we please have the official word from Darell. At this stage in our development we cannot have a stop-start effort or any such distractions. If we need to back out today, then so be it.

    Please do not spring any surprises.

    Tony