1. #1
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
    TipyTop is on a distinguished road

      0  

    Default Answered: Programmatically change base color

    Answered: Programmatically change base color


    Is it possible? I've search on google and stackoverflow and I couldn't found any solution. One member on this forum said, that Kitchen Sink has an example.

  2. Hi,

    I don't think you can do this via javascript easily - in fact you don't want to.
    Sounds like you want to dynamically change themeing of a website.
    Touch uses the SASS and Compass toolsets to theme Sencha and produces a new CSS resource files as a result (same as ExtJS).
    You can create multiple themes which produce separate css files and then a user can switch themes by you switching resources (via a redirect)

    See this link for ExtJS theme switch demo - http://docs.sencha.com/ext-js/4-1/#!...mes/index.html

    Touch theming - http://docs.sencha.com/touch/2-0/#!/video/theming

    http://docs.sencha.com/touch/2-0/#!/guide/theming



  3. #2
    Touch Premium Member suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    464
    Vote Rating
    69
    Answers
    21
    suzuki1100nz is just really nice suzuki1100nz is just really nice suzuki1100nz is just really nice suzuki1100nz is just really nice

      0  

    Default


    Hi,

    I don't think you can do this via javascript easily - in fact you don't want to.
    Sounds like you want to dynamically change themeing of a website.
    Touch uses the SASS and Compass toolsets to theme Sencha and produces a new CSS resource files as a result (same as ExtJS).
    You can create multiple themes which produce separate css files and then a user can switch themes by you switching resources (via a redirect)

    See this link for ExtJS theme switch demo - http://docs.sencha.com/ext-js/4-1/#!...mes/index.html

    Touch theming - http://docs.sencha.com/touch/2-0/#!/video/theming

    http://docs.sencha.com/touch/2-0/#!/guide/theming



  4. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
    TipyTop is on a distinguished road

      0  

    Default


    Quote Originally Posted by suzuki1100nz View Post
    Hi,

    I don't think you can do this via javascript easily - in fact you don't want to.
    Sounds like you want to dynamically change themeing of a website.
    Touch uses the SASS and Compass toolsets to theme Sencha and produces a new CSS resource files as a result (same as ExtJS).
    You can create multiple themes which produce separate css files and then a user can switch themes by you switching resources (via a redirect)

    See this link for ExtJS theme switch demo - http://docs.sencha.com/ext-js/4-1/#!...mes/index.html

    Touch theming - http://docs.sencha.com/touch/2-0/#!/video/theming

    http://docs.sencha.com/touch/2-0/#!/guide/theming


    As I anticipated. Thank you.

Thread Participants: 1

Tags for this Thread