Only changed title and hex codes. I was hoping I could create my own color sets. Didn't seem to work. Should this work?

Comments

Jeff Burnz’s picture

Component: Code » User interface
Category: task » support
Priority: Minor » Normal
Status: Active » Postponed (maintainer needs more info)

No idea what you mean.

MochaMan’s picture

Below is a partial cut-and-paste from the "color.inc" file. I was hoping I could create my own color schemes by changing the titles and the hex codes. Several tests have not worked. Is this not the source for the hex codes used in the pre-defined color schems?

// Pre-defined color schemes.
'schemes' => array(
'default' => array(
'title' => t('Girly Pink (default)'),
'colors' => array(
'base' => '#eb52c1',
'page' => '#ffffff',
'sitename' => '#feffff',
'slogan' => '#fefefe',
'header' => '#fdfdfd',
'mmenu' => '#fffffe',
'link' => '#b21f88',
'top' => '#b800a5',
'bottom' => '#ff6bff',
'ftop' => '#181818',
'fbottom' => '#343434',
'text' => '#555555',
'blockh' => '#eb5ac3',
'blockht' => '#fffffc',
'blockbg' => '#f9cbec',
'borders' => '#e9e9e9',
'sticky' => '#f7f7f7',
),
),
'redcarpet' => array(
'title' => t('Red Carpet'),
'colors' => array(
'base' => '#de8291',
'page' => '#ffffff',
'sitename' => '#feffff',
'slogan' => '#fefefe',
'header' => '#fdfdfd',
'mmenu' => '#fffffe',
'link' => '#c55964',
'top' => '#861509',
'bottom' => '#f8306a',
'ftop' => '#181818',
'fbottom' => '#343434',
'text' => '#555555',
'blockh' => '#df8796',
'blockht' => '#fffffc',
'blockbg' => '#f5d9de',
'borders' => '#e9e9e9',
'sticky' => '#f7f7f7',
),
),

Jeff Burnz’s picture

You should not change the array keys, only the values (the hex values).

The scheme name needs to unique.

Other than that yes you can create your own schemes and save them in the color.inc file.