From 2b6665b784633430df845c44bd991a7fc4e09161 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 3 Mar 2012 16:36:37 -0500 Subject: [PATCH] Using colors from Tango icon theme for color test --- scripts/ColorTestCase.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/ColorTestCase.js b/scripts/ColorTestCase.js index 2b16744..693269b 100644 --- a/scripts/ColorTestCase.js +++ b/scripts/ColorTestCase.js @@ -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 + ); } } );