Custom themes

  1. #1

    Custom themes

    I wanted only to share my experience with custom themes.

    We implemented 3 custom themes, based on the standard ones, just different colors.

    A theme was made of a css file + subdirectories with images grouped by area (grid, tabs etc.) where the images are used.

    The custom theme is injected after the other themes and this created a problem for tab icons (the tab icon was shifted 1px up) and tree panel row sizes for rows with images (the rows 4px thicker). This was all due to the way the css rules were resolved, basically the custom theme rules took precedence over the default rules. The blue/gray/accessibility themes behaved properly and I think it was because they are interwoven with the theme independent rules.

    I ended up solving this by adding a style tag to the page master with these tags:

    .cell-imagecommand-cell .x-grid-cell-inner 
    {
    	padding: 1px 0px 0px 0px;
    }
    
    /* This needs to be here otherwise the tab icons in the custome theme are shifted 1px up */
    .x-tab-icon{
        width:16px;
        height:16px;
        background-position: 0px;
    }
  2. #2
    Hello!

    Sorry, I don't quite understand you have some question or not?

    Usually, for sharing you should use this forum http://forums.ext.net/forumdisplay.p...en-Discussions or this one http://forums.ext.net/forumdisplay.p...ns-and-Plugins
  3. #3
    No question, I only wanted to share my experience with regards to custom themes in case someone else has the same issues.

    Can you move the thread to the discussions forum?

    Thanks
  4. #4
    Hi everybody,

    I moved the thread to the Examples and Extras forum. Seems it is the most appropriate one for this thread.

    Thank you for sharing your experience, @bogc. Much appreciate!

    Are you sure there is no issue that we should investigate? Honestly, I doubt the icons should be shifted...

    If you will have a chance to prepare a simple example to reproduce the problem, we would be happy to investigate.

Similar Threads

  1. [CLOSED] Custom themes in 1.x
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 03, 2012, 4:34 PM
  2. What about new Themes?
    By Tanielian in forum 1.x Help
    Replies: 2
    Last Post: Sep 03, 2010, 6:42 PM
  3. [CLOSED] Window Resizable broke w/IE & Custom ASP.NET Themes
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 19, 2010, 11:45 AM
  4. about themes
    By kiran malgi in forum 1.x Help
    Replies: 2
    Last Post: Mar 06, 2010, 12:35 AM

Posting Permissions