[CLOSED] How to change the background color based on theme change

  1. #1

    [CLOSED] How to change the background color based on theme change

    Hi,

    We are using all of your theme in our application. In our page we customized the page background color.
    Please let us know how we can change the background color based on theme change.
    Last edited by Daniil; Mar 20, 2015 at 7:41 PM. Reason: [CLOSED]
  2. #2
    Hi @speedstepmem4,

    Please inspect a page's <html> element rendered to a browser.

    A special theme class is added to an <html>'s class attribute. You can use that class in your CSS rules.
  3. #3

    How to change the background color based on theme change

    Hi @Daniil,

    Can you please demonstrate us with a sample?
  4. #4
    Speedstepmem4, let us know whether the following sample helps you.

    <!DOCTYPE html>
    <html>
    <head runat="server">
        <style type="text/css">
            .x-theme-crisp body {
                background-color: aliceblue;
            }
    
            .x-theme-crisptouch body {
                background-color: aqua;
            }
    
            .x-theme-gray body {
                background-color: gray;
            }
    
            .x-theme-neptune body {
                background-color: black;
            }
    
            .x-theme-neptunetouch body {
                background-color: darkgray;
            }
    
            .x-theme-blue body {
                background-color: blue;
            }
        </style>
    </head>
    <body>
        <ext:ResourceManager Theme="Crisp" runat="server" />
    </body>
    </html>

Similar Threads

  1. [CLOSED] Change Color Window's Header Background Color
    By rguardado in forum 3.x Premium Help
    Replies: 3
    Last Post: Jan 16, 2015, 3:48 PM
  2. [CLOSED] How to change a ext:menu's background color?
    By Fahd in forum 2.x Premium Help
    Replies: 2
    Last Post: Feb 15, 2013, 4:01 AM
  3. Replies: 5
    Last Post: Dec 07, 2012, 4:42 PM
  4. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions