1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    51
    Vote Rating
    0
    nseb is on a distinguished road

      0  

    Default ThemeSelector : change theme without reload

    ThemeSelector : change theme without reload


    Hi ,

    it's possible to change theme without reload , like as extjs ?
    can use ext's theme with gxt ?

    Best Regards,
    Sebastien.

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    866
    Vote Rating
    0
    micgala is on a distinguished road

      0  

    Default


    Hi, since this was not answered, I bring it back here:

    Is it still not possible to change the theme without restarting the application, like we had in ext-js?

    If not, is there any reason why?

    Thanks,
    Michel.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,703
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Sure you can just swap the css files and the look will change. If you want this without a reload you can easily implement it.

  4. #4
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    866
    Vote Rating
    0
    micgala is on a distinguished road

      0  

    Default


    Hi Sven.

    Could you please guide me on how to do it?

    I guess I would need to use CSS class for this, right?

    I would need to remove the old one (what is the id?)
    and then I would need to add the new one...

    Is this the way?

  5. #5
    Ext User
    Join Date
    Aug 2009
    Posts
    18
    Vote Rating
    0
    Roby is on a distinguished road

      0  

    Default


    Anyone have implement the way how to swap the css files which look like switchTheme from BLUE to GRAY?

  6. #6
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    22
    Vote Rating
    0
    peet is on a distinguished road

      0  

    Default


    use:

    Ext.util.CSS.swapStyleSheet(id, url);

    and

    Ext.util.CSS.removeStyleSheet(id)

    swap appends to existing making it override them. old one should be removed so they do not interfere.

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Posts
    25
    Vote Rating
    0
    geovannefarell is on a distinguished road

      0  

    Default


    can you explain to me ??
    pleaseeee.....
    where the code write it ?