color.inc
Same filename in this branch
Same filename and directory in other branches
File
-
core/
modules/ color/ tests/ modules/ color_test/ themes/ color_test_theme/ color/ color.inc
View source
<?php
/**
* @file
* Lists available colors and color schemes for the Color test theme.
*/
$info = [
'fields' => [
'bg' => t('Main background'),
'text' => t('Text color'),
],
'schemes' => [
'default' => [
'title' => t('Default'),
'colors' => [
'bg' => '#ff0000',
'text' => '#0000ff',
],
],
'custom' => [
'title' => t('Custom'),
'colors' => [
'bg' => '#ff0000',
'text' => '#3b3b3b',
],
],
],
'css' => [
'css/colors.css',
],
'copy' => [
'logo.svg',
],
'preview_html' => 'color/preview.html',
'#attached' => [
'drupalSettings' => [
'color' => [
// Put the logo path into JavaScript for the live preview.
'logo' => theme_get_setting('logo.url', 'color_test_theme'),
],
],
],
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.