Results 1 to 4 of 4

Thread: how to change the base color of extjs app base on user

  1. #1

    Default how to change the base color of extjs app base on user

    Hi,

    I want to change the base color of my application base on the user login.
    The base color value is available in the database.
    Please suggest me the better way so that i can change the theme dynamically

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    The base color is a SASS variable that is then compiled when you run an application build, not during application runtime.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    Thanks Mitchellsimoens for reply.Then 2nd option is that we have to override css classes Right?

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    The $base-color SASS variable is used throughout all the styles and therefore you'd have to override quite a few CSS rules to have the same effect.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Similar Threads

  1. how to change the base color of different theme ?
    By appz in forum Sencha Touch 2.x: Q&A
    Replies: 18
    Last Post: 13 Feb 2014, 3:16 AM
  2. Programmatically change base color
    By TipyTop in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 13 Oct 2012, 1:40 AM
  3. How can I change the base color of my application
    By Ceene in forum Ext GWT: Q&A
    Replies: 1
    Last Post: 12 Oct 2011, 4:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •