Results 1 to 4 of 4

Thread: Exclude things from themes?

  1. #1
    Sencha User farion's Avatar
    Join Date
    Feb 2008
    Location
    Karlsruhe, Germany
    Posts
    75
    Vote Rating
    10
      0  

    Default Exclude things from themes?

    Hi,

    is it possible to exclude things from themes? We use ExtJS 4.2 and Sencha Touch 2.2. Our ExtJS Theme extends ext-theme-neptune.

    For example, we do not use the datepicker or the accordion etc. Is it possible to remove such things from the resulting css?

    Thx farion

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    One of the reasons why we moved to packages is for the inheritance. If you aren't using it in your app then it shouldn't include it in the theme.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User farion's Avatar
    Join Date
    Feb 2008
    Location
    Karlsruhe, Germany
    Posts
    75
    Vote Rating
    10
      0  

    Default

    I investigated a little bit. It seams, that sencha cmd generates two css files:

    build/MyApp/production/resources/MyApp-all.css
    build/MyApp/production/resources/MyApp-example.css

    The all-css contains no datepicker. But the example-css does. The example file is more than twice as large as the all file, so I guess, that it contains everything. Also build/MyApp/production/resources/images contains the image files for the datepicker. I guess, because they are needed by the example-css.

    In the html file only the all-css is included. So I guess, that the reason is the example-css. Why is it there? How can I avoid its creation?

    Thanks farion

  4. #4
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    461
    Vote Rating
    44
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    One of the reasons why we moved to packages is for the inheritance. If you aren't using it in your app then it shouldn't include it in the theme.
    http://www.sencha.com/forum/showthre...=1#post1089461

    I just want to see the neutral theme. I know I won't be using a datepicker.

    It would be easier to exclude it than work my way through one compile per missing variable

Posting Permissions

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