[CLOSED] Label Style / Obtain label color based on theme

Page 2 of 2 FirstFirst 12
  1. #11

    RE: [CLOSED] Label Style / Obtain label color based on theme

    Ok, but my issue is if I use this style, and someone changes to the "Gray" theme,
    . x-btn-group .x-label-value{color: #fff;}

    Will be practically invisible....

    So you are telling me that I have to create a specific style in each style sheet to accomodate? There is no way to
    leverage? if so, then fine, I just thought there would be a more elegant way handling..

  2. #12

    RE: [CLOSED] Label Style / Obtain label color based on theme

    Hi,

    As I said you have to apply different css rules for each theme
       switch (ResourceManager1.Theme){
              case Theme.Slate :
                   ResourceManager1.RegisterClientStyleInclude("slate", "slateMyRules.css");
                   break;
              case Theme.Gray :
    
                   ResourceManager1.RegisterClientStyleInclude("gray", 
    "grayMyRules.css");
    
                   break;
       }
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to apply a theme to <ext:Label /> control?
    By vadym.f in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2012, 12:03 PM
  2. Replies: 3
    Last Post: Aug 04, 2010, 9:00 PM
  3. How to change the font color for Ext Label
    By rasu_13 in forum 1.x Help
    Replies: 0
    Last Post: Apr 03, 2010, 3:12 AM
  4. Label style
    By javito in forum 1.x Help
    Replies: 2
    Last Post: Oct 08, 2009, 9:46 AM
  5. How to set style of label?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2009, 6:36 PM

Posting Permissions