1. #1
    Sencha User Wedgybo's Avatar
    Join Date
    Jul 2011
    Location
    Edinburgh, Scotland
    Posts
    17
    Vote Rating
    11
    Wedgybo will become famous soon enough

      0  

    Default Theme overrides are not included in development mode on secha app refresh

    Hi there,

    I've followed through on the documentation found here for producing themes in 4.2 using Cmd 3.1.0. http://docs.sencha.com/ext-js/4-2/#!/guide/theming

    According to the documentation. You should be able to update the development version [workspace]/[app]/index.html with these overrides using 'sencha app refresh'.

    I think there may be a step missing, either that or I have done something wrong. I had to add in

    <script src="../packages/[theme]/build/[theme].js"></script>

    To my index.html file so that my overrides work when building my application. Is this the correct way to do this? or am I doing something wrong?

    Cheers,
    Jamie

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,582
    Vote Rating
    1136
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    Think you have to do a build to get the CSS updated for dev mode
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    15
    Vote Rating
    0
    Van_vco is on a distinguished road

      0  

    Default Only available from build/xxx directory

    Quote Originally Posted by mitchellsimoens View Post
    Think you have to do a build to get the CSS updated for dev mode
    It looks like even after doing a build, the CSS is only updated if you run the actual build in the browser (ie: [project]/build/build_name/index.html). But running the app from the root folder of the application ([project]/index.html), the theme is not applied. This is different from a Touch application built with CMD, which does have the CSS from the build available when the index.html is loaded from the application root.

Thread Participants: 2

Tags for this Thread