1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    9
    Vote Rating
    0
    Jashmi is on a distinguished road

      0  

    Red face Urgent Help :: Unable to change theme ???

    Urgent Help :: Unable to change theme ???


    I am tired to change the theme ?

    I have search alot in this forum and i find lot of post for theme change and i try all of those script but i unable to change the theme?

    Live URL : http://mindsharehost.com/ext/complex.html

    I'm using following code :

    for head

    <script>
    Ext.onReady(function(){
    if(Ext.state.Manager.getProvider()) {
    var theme = Ext.state.Manager.get('theme');
    Ext.util.CSS.swapStyleSheet('theme','../resources/style/xtheme-'+ theme + '.css');
    }
    var cb = Ext.get('exttheme');
    cb.on('change', function(){
    Ext.util.CSS.swapStyleSheet('theme','../resources/style/xtheme-'+ cb.dom.value + '.css');
    if(Ext.state.Manager.getProvider()) {
    Ext.state.Manager.set('theme', theme);
    }
    });
    });
    </script>


    for body

    <div id="lib-bar" class="x-toolbar" style="border-width:0 1px 1px"><div id="lib-bar-inner"> <span>Theme:</span>&#160;&#160;<select id="exttheme"><option value="default">Ext Blue</option><option value="gray">Gray Theme</option><option value="green">Green Theme</option></select></div></div>

    Thanks in advance

  2. #2
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    View in action: www.jadacosta.es

    I create a component: ThemeCyclebutton

    Greetings,

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    9
    Vote Rating
    0
    Jashmi is on a distinguished road

      0  

    Default Thanks for your response

    Thanks for your response


    V.V thanks for your response i appreciate your help.

    Write down the files name which are making ThemeCyclebutton ?

    and

    your website is not changing green and slat color ? might be some problem with it ? but its changing gray and blue color which is enough for me.

Thread Participants: 1