Newer
Older
Angie Byron
committed
<?php
Jennifer Hodgdon
committed
/**
* @file
* Lists avalable colors and color schemes for the Bartik theme.
*/
Angie Byron
committed
// Put the logo path into JavaScript for the live preview.
drupal_add_js(array('color' => array('logo' => theme_get_setting('logo', 'bartik'))), 'setting');
$info = array(
// Available colors and color labels used in theme.
'fields' => array(
'top' => t('Header background top'),
'bottom' => t('Header background bottom'),
Dries Buytaert
committed
'bg' => t('Main background'),
Angie Byron
committed
'sidebar' => t('Sidebar background'),
'sidebarborders' => t('Sidebar borders'),
'footer' => t('Footer background'),
'titleslogan' => t('Title and slogan'),
Dries Buytaert
committed
'text' => t('Text color'),
'link' => t('Link color'),
Angie Byron
committed
),
// Pre-defined color schemes.
'schemes' => array(
'default' => array(
'title' => t('Blue Lagoon (default)'),
'colors' => array(
'top' => '#0779bf',
'bottom' => '#48a9e4',
Dries Buytaert
committed
'bg' => '#ffffff',
Angie Byron
committed
'sidebar' => '#f6f6f2',
'sidebarborders' => '#f9f9f9',
Dries Buytaert
committed
'footer' => '#292929',
'titleslogan' => '#fffeff',
Dries Buytaert
committed
'text' => '#3b3b3b',
'link' => '#0071B3',
Angie Byron
committed
),
),
Dries Buytaert
committed
'firehouse' => array(
Angie Byron
committed
'title' => t('Firehouse'),
'colors' => array(
'top' => '#cd2d2d',
'bottom' => '#cf3535',
Dries Buytaert
committed
'bg' => '#ffffff',
Dries Buytaert
committed
'sidebar' => '#f1f4f0',
'sidebarborders' => '#ededed',
Angie Byron
committed
'footer' => '#1f1d1c',
'titleslogan' => '#fffeff',
Dries Buytaert
committed
'text' => '#3b3b3b',
'link' => '#d6121f',
Angie Byron
committed
),
),
Dries Buytaert
committed
'ice' => array(
'title' => t('Ice'),
'colors' => array(
'top' => '#d0d0d0',
'bottom' => '#c2c4c5',
Dries Buytaert
committed
'bg' => '#ffffff',
Dries Buytaert
committed
'sidebar' => '#ffffff',
'sidebarborders' => '#cccccc',
'footer' => '#24272c',
'titleslogan' => '#000000',
Dries Buytaert
committed
'text' => '#4a4a4a',
'link' => '#019dbf',
Dries Buytaert
committed
),
),
'plum' => array(
Angie Byron
committed
'title' => t('Plum'),
'colors' => array(
'top' => '#4c1c58',
'bottom' => '#593662',
Dries Buytaert
committed
'bg' => '#fffdf7',
Dries Buytaert
committed
'sidebar' => '#edede7',
'sidebarborders' => '#e7e7e7',
Dries Buytaert
committed
'footer' => '#2c2c28',
'titleslogan' => '#ffffff',
Dries Buytaert
committed
'text' => '#301313',
'link' => '#9d408d',
Angie Byron
committed
),
),
Dries Buytaert
committed
'slate' => array(
'title' => t('Slate'),
Angie Byron
committed
'colors' => array(
Dries Buytaert
committed
'top' => '#4a4a4a',
'bottom' => '#4e4e4e',
Dries Buytaert
committed
'bg' => '#ffffff',
Dries Buytaert
committed
'sidebar' => '#ffffff',
'sidebarborders' => '#d0d0d0',
'footer' => '#161617',
'titleslogan' => '#ffffff',
Dries Buytaert
committed
'text' => '#3b3b3b',
'link' => '#0073b6',
Angie Byron
committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
),
),
),
// CSS files (excluding @import) to rewrite with new color scheme.
'css' => array(
'css/colors.css',
),
// Files to copy.
'copy' => array(
'logo.png',
),
// Gradient definitions.
'gradients' => array(
array(
// (x, y, width, height).
'dimension' => array(0, 0, 0, 0),
// Direction of gradient ('vertical' or 'horizontal').
'direction' => 'vertical',
// Keys of colors to use for the gradient.
'colors' => array('top', 'bottom'),
),
),
// Color areas to fill (x, y, width, height).
'fill' => array(),
// Coordinates of all the theme slices (x, y, width, height)
// with their filename as used in the stylesheet.
'slices' => array(),
// Reference color used for blending. Matches the base.png's colors.
'blend_target' => '#ffffff',
// Preview files.
'preview_css' => 'color/preview.css',
'preview_js' => 'color/preview.js',
'preview_html' => 'color/preview.html',
// Base file for image generation.
'base_image' => 'color/base.png',
);