Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-257 in a recent build.
  1. #1
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    474
    Vote Rating
    5
    mysticav is on a distinguished road

      2  

    Default Building Themes with Sencha Cmd 3.0.0.250

    Building Themes with Sencha Cmd 3.0.0.250


    Using Sencha Cmd 3.0.0.250, and ExtJS 4.1.1a
    This is very confusing.

    The docs say:

    cd /path/to/MyApp
    sencha theme build default
    This will place the sliced images in the "./resources/css/default" folder alongside the CSS file generated by SASS. This approach reduces the size of the CSS file since all image paths are relative to the CSS file location.
    That would be:
    Code:
    [public]/resources/css/mytheme/images go here
    But it seems that it has to be:
    Code:
    [public]/build/resources/images/mytheme
    and even more confusing,
    When I run:
    Code:
    sencha theme build mytheme
    The images are created as:
    Code:
    [public]/build/MyApp/resources/images/mytheme
    (this is not what the Docs says).

    As you can see, the resources directory is inside "MyApp" directory. Not only that, based on the docs, I would expect the images here:
    Code:
    [public]/resources/css/mytheme/images here...

    Please clarify. Why all this discrepancy ?

    Also, when I build the css with compass compile, can you explain me howExtJS decides when to use the slices ? I guess it detects if it is IE, but then, in which path it looks for the images ?
    The generated "mytheme" CSS, which is located at:

    Code:
    [public]/resources/css/mytheme/app.css
    and is looking for images at:

    Code:
    [public]/ext/resources/themes/images/default
    But I would expect the CSS to point to:
    Code:
    [public]/resources/css/mytheme/
    or

    Code:
    [public]/build/resources/images/mytheme/
    Currently there's no guide that can clarify all these issues.

    Seems that te most updated guide is this:
    http://docs.sencha.com/ext-js/4-1/#!.../command_theme

    But again, not clear and inconsistent.
    Using Ext with cachefly
    Working on LAMPExt

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Vancouver WA
    Posts
    10
    Vote Rating
    1
    amoathou is on a distinguished road

      1  

    Default


    I agree. It would be nice if the documentation was updated so it wasn't so confusing and was accurate.

  3. #3
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    474
    Vote Rating
    5
    mysticav is on a distinguished road

      1  

    Default


    Or at least, if someone can post a tutorial about the whole compiling process with Cmd .250
    Using Ext with cachefly
    Working on LAMPExt

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Vote Rating
    9
    ldonofrio will become famous soon enough

      1  

    Default


    This in a pain. I ended up editing utils.rb to put the images where i want

  5. #5
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    361
    Vote Rating
    6
    stewardsencha is on a distinguished road

      1  

    Default


    Mind sharing your edits?
    I failed at ruby.

  6. #6
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,346
    Vote Rating
    134
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    I apologize for the delay in replying to this thread. We are in the middle of some major work to support multiple themes in the framework for Ext JS 4.2 and have decided that we need to back-port some of that from Cmd 3.1 to Cmd 3.0.1 to resolve these issues.

    In the next release we will be consolidating themes into bundles (that is, all of the pieces of a theme will be kept in a single folder) for easy sharing and path resolution...

    We will be releasing 3.0.1 very soon and have taken that basic approach to solve all of these path issues. This should set things up better for Ext JS 4.2 / Cmd 3.1 as well.

    And the theme guide has been updated to reflect those changes.

    Please watch for the Cmd 3.0.1 notice and then check for guide updates at that time.
    Don Griffin
    Ext JS Development Team Lead

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

    "Use the source, Luke!"

  7. #7
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,346
    Vote Rating
    134
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    http://www.sencha.com/forum/showthre...-Now-Available

    With Cmd 3.0.1 out, I am noticing that the new guides are not yet updated. I will try to get them pushed ASAP.

    This version contains a number of important changes to theme organization that are moving towards a themes as free-standing packages model. More to come on that but the new guides should help clarify this for 3.0.1.
    Don Griffin
    Ext JS Development Team Lead

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

    "Use the source, Luke!"

  8. #8
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,346
    Vote Rating
    134
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    I have created a sticky thread to discuss changes to Ext JS themes in Cmd 3.0.2 - http://www.sencha.com/forum/showthre...s-in-Cmd-3.0.2.

    Please see that thread for details.
    Don Griffin
    Ext JS Development Team Lead

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

    "Use the source, Luke!"