1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Answers
    4
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default Answered: ST 2.2.1 only default theme found and base-color not working

    Answered: ST 2.2.1 only default theme found and base-color not working


    Hi,

    1/
    built an app with ST2.2.1 and sencha cmd 3.1.2.342.

    the only theme that is generated is the default sencha touch app.css file.
    where are the other themes? e.g. ios and windows and blackberry as specified here
    http://docs.sencha.com/touch/2.2.1/#!/guide/theming

    2/
    Also tried to set the $base-color: #00FFFF; either above or below the
    @import 'sencha-touch/default';
    @import 'sencha-touch/default/all';
    statements in my app.scss and the base color of my tabpanel doesnt change after compiling...but compiling is working as I can change other things.

    this was working fine in ST2.2.0 ..

    any ideas?

    thx

  2. I just downloaded the new 2.2.1 SDK and i generate a project with:

    Code:
    sencha generate app myapp ../myapp
    If you have the themes in the 2.2.0 version copy them in the 2.2.1 version

  3. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    45
    Answers
    3
    Vote Rating
    1
    Dchar is on a distinguished road

      0  

    Default


    Hi,

    I guess there is only one default theme in the 2.1.1 version, the base theme is included in the 2.2 version

    Try to remove the '#' in your sass line, and add the custom code above the import like this :

    Code:
    $base-color: #fff;
    
    @import 'sencha-touch/default/all';
    Hope it work for you

  4. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Answers
    4
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default


    Post should read ST 2.2.1 - sorry

  5. #4
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Answers
    4
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default


    I have the below and it doesnt work.

    $base-color: #FF0000;


    // The following two lines import the default Sencha Touch theme. If you are building
    // a new theme, remove them and the add your own CSS on top of the base CSS (which
    // is already included in your app.json file).
    @import 'sencha-touch/default';
    @import 'sencha-touch/default/all';

  6. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Answers
    4
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default


    I am not sure I follow what you are saying about the themes.
    After building a ST 2.2.1 app there is only the ST default theme.
    How do I get access to the ios, android, blackberry and windows themes as described here http://docs.sencha.com/touch/2.2.1/#!/guide/theming

  7. #6
    Sencha User
    Join Date
    Apr 2013
    Posts
    45
    Answers
    3
    Vote Rating
    1
    Dchar is on a distinguished road

      0  

    Default


    I just downloaded the new 2.2.1 SDK and i generate a project with:

    Code:
    sencha generate app myapp ../myapp
    If you have the themes in the 2.2.0 version copy them in the 2.2.1 version

  8. #7
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Answers
    4
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default


    ok thx ill do that

Thread Participants: 1

Tags for this Thread