Results 1 to 8 of 8

Thread: How to share a custom theme in a multi-page ExtJS application

  1. #1
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    28
      2  

    Default How to share a custom theme in a multi-page ExtJS application

    I am wondering the best way to go about sharing a custom theme and resources like images in a multi-page ExtJS application build. It seems like it currently requires you to rebuild the theme for each individual page in your application.

    I would like to store the theme at the workspace level and be able to build the "app" (all pages) by issuing the `sencha app build` command from the workspace directory. Then each page would just reference the theme from the build root.

    Something like this..

    Code:
    build\
    build\resources\
    build\resources\images
    build\resources\css
    build\page1\
    ...
    build\page2
    ...

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    38
    Vote Rating
    1
      0  

    Default

    I am having this same problem as well.

  3. #3
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    28
      0  

    Default

    Bump. Don't want this to get buried until we hear some official response from a Sencha dev.

  4. #4
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    64
      0  

    Default

    I'm also interested to hear what the "proper" way is, if one exists. The best I could do was hack together a not-too-great solution using the Ant integration of Sencha Cmd.

  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,694
    Vote Rating
    232
      1  

    Default

    Sorry for the delay. I promise I haven't been ignoring your question ...

    At present, elbow grease is about the only answer (and leveraging Ant is a good choice there). You could create a "theme app" (an app with just one theme) to help isolate the theme from "real" apps.

    We will be working on a more elegant answer for future releases.
    Don Griffin
    Director of Engineering - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  6. #6
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    28
      0  

    Default

    Thanks for replying Don. I have a work around for now but hope this makes it in.

  7. #7
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,694
    Vote Rating
    232
      0  

    Default

    The migration is underway - 3.0.2 moves themes into a proper package structure and 3.1 *should* see that structure be shared in a workspace.

    http://www.sencha.com/forum/showthre...s-in-Cmd-3.0.2
    Don Griffin
    Director of Engineering - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  8. #8
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Hillsborough, NC
    Posts
    435
    Vote Rating
    135
      0  

    Default

    Quote Originally Posted by dongryphon View Post
    Sorry for the delay. I promise I haven't been ignoring your question ...

    At present, elbow grease is about the only answer (and leveraging Ant is a good choice there). You could create a "theme app" (an app with just one theme) to help isolate the theme from "real" apps.

    We will be working on a more elegant answer for future releases.
    This thread is what I come up with by searching and is a bit old...

    Is there a method to do this now? Are there some instructions somewhere I'm missing?

    What if I'm using Sencha Architect?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •