Commit 41d7e347 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#193604 by hass and dvessel: fix color module to be able to use arbitrary...

#193604 by hass and dvessel: fix color module to be able to use arbitrary styles, not just style.css, fixing Minnelli coloring and RTL CSS file coloring
parent 7b52f8d5
This diff is collapsed.
......@@ -2727,6 +2727,20 @@ function system_update_6041() {
return $ret;
}
/**
* Upgrade recolored theme stylesheets to new array structure.
*/
function system_update_6042() {
foreach (list_themes() as $theme) {
$stylesheet = variable_get('color_'. $theme->name .'_stylesheet', NULL);
if (!empty($stylesheet)) {
variable_set('color_'. $theme->name .'_stylesheets', array($stylesheet));
variable_del('color_'. $theme->name .'_stylesheet');
}
}
return array();
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
......
......@@ -3,7 +3,7 @@
$info = array(
// Pre-defined color schemes
// Pre-defined color schemes.
'schemes' => array(
'#0072b9,#027ac6,#2385c2,#5ab5ee,#494949' => t('Blue Lagoon (Default)'),
'#464849,#2f416f,#2a2b2d,#5d6779,#494949' => t('Ash'),
......@@ -22,7 +22,7 @@
'#18583d,#1b5f42,#34775a,#52bf90,#2d2d2d' => t('Teal Top'),
),
// Images to copy over
// Images to copy over.
'copy' => array(
'images/menu-collapsed.gif',
'images/menu-collapsed-rtl.gif',
......@@ -30,10 +30,15 @@
'images/menu-leaf.gif',
),
// Coordinates of gradient (x, y, width, height)
// CSS files (excluding @import) to rewrite with new color scheme.
'css' => array(
'style.css',
),
// Coordinates of gradient (x, y, width, height).
'gradient' => array(0, 37, 760, 121),
// Color areas to fill (x, y, width, height)
// Color areas to fill (x, y, width, height).
'fill' => array(
'base' => array(0, 0, 760, 568),
'link' => array(107, 533, 41, 23),
......@@ -61,10 +66,10 @@
// Reference color used for blending. Matches the base.png's colors.
'blend_target' => '#ffffff',
// Preview files
// Preview files.
'preview_image' => 'color/preview.png',
'preview_css' => 'color/preview.css',
// Base file for image generation
// Base file for image generation.
'base_image' => 'color/base.png',
);
......@@ -3,7 +3,7 @@
$info = array(
// Pre-defined color schemes
// Pre-defined color schemes.
'schemes' => array(
'#0072b9,#027ac6,#2385c2,#5ab5ee,#494949' => t('Blue Lagoon (Default)'),
'#464849,#2f416f,#2a2b2d,#5d6779,#494949' => t('Ash'),
......@@ -22,7 +22,7 @@
'#18583d,#1b5f42,#34775a,#52bf90,#2d2d2d' => t('Teal Top'),
),
// Images to copy over
// Images to copy over.
'copy' => array(
'../images/menu-collapsed.gif',
'../images/menu-collapsed-rtl.gif',
......@@ -30,10 +30,15 @@
'../images/menu-leaf.gif',
),
// Coordinates of gradient (x, y, width, height)
// CSS files (excluding @import) to rewrite with new color scheme.
'css' => array(
'../style.css',
),
// Coordinates of gradient (x, y, width, height).
'gradient' => array(0, 37, 760, 121),
// Color areas to fill (x, y, width, height)
// Color areas to fill (x, y, width, height).
'fill' => array(
'base' => array(0, 0, 760, 568),
'link' => array(107, 533, 41, 23),
......@@ -61,10 +66,10 @@
// Reference color used for blending. Matches the base.png's colors.
'blend_target' => '#ffffff',
// Preview files
// Preview files.
'preview_image' => 'color/preview.png',
'preview_css' => '../color/preview.css',
// Base file for image generation
// Base file for image generation.
'base_image' => 'color/base.png',
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment