Using colors from Tango icon theme for color test
parent
7e5be7745c
commit
2b6665b784
|
@ -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
|
||||
);
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in New Issue