Using colors from Tango icon theme for color test

master
Mike Gerwitz 2012-03-03 16:36:37 -05:00
parent 7e5be7745c
commit 2b6665b784
1 changed files with 17 additions and 1 deletions

View File

@ -9,6 +9,20 @@ rectest.ColorTestCase = Class( 'ColorTestCase' )
[ 'purple', 'brown', 'gray' ]
],
// Tango icon theme
'private static _cmap': {
black: '#2e3436',
blue: '#204a87',
brown: '#8f5902',
gray: '#babdb6',
green: '#73d216',
orange: '#f57900',
purple: '#75507b',
red: '#cc0000',
white: '#eeeeec',
yellow: '#edd400'
},
/**
* Element to contain color
* @var {jQuery}
@ -46,7 +60,9 @@ rectest.ColorTestCase = Class( 'ColorTestCase' )
'public render': function( id, $element )
{
this._$color.css( 'background-color', id );
this._$color.css( 'background-color',
this.__self.$( '_cmap' )[ id ] || id
);
}
} );