1. 8.2.x core/themes/bartik/color/color.inc
  2. 8.2.x core/modules/color/tests/modules/color_test/themes/color_test_theme/color/color.inc
  3. 8.0.x core/modules/color/tests/modules/color_test/themes/color_test_theme/color/color.inc
  4. 8.0.x core/themes/bartik/color/color.inc
  5. 8.1.x core/modules/color/tests/modules/color_test/themes/color_test_theme/color/color.inc
  6. 8.1.x core/themes/bartik/color/color.inc
  7. 8.3.x core/modules/color/tests/modules/color_test/themes/color_test_theme/color/color.inc
  8. 8.3.x core/themes/bartik/color/color.inc
  9. 5.x themes/garland/color/color.inc
  10. 5.x themes/garland/minnelli/color/color.inc
  11. 6.x themes/garland/minnelli/color/color.inc
  12. 6.x themes/garland/color/color.inc
  13. 7.x themes/bartik/color/color.inc
  14. 7.x themes/garland/color/color.inc

File

themes/bartik/color/color.inc
View source
  1. <?php
  2. // Put the logo path into JavaScript for the live preview.
  3. drupal_add_js(array('color' => array('logo' => theme_get_setting('logo', 'bartik'))), 'setting');
  4. $info = array(
  5. // Available colors and color labels used in theme.
  6. 'fields' => array(
  7. 'top' => t('Header top'),
  8. 'bottom' => t('Header bottom'),
  9. 'bg' => t('Main background'),
  10. 'sidebar' => t('Sidebar background'),
  11. 'sidebarborders' => t('Sidebar borders'),
  12. 'footer' => t('Footer background'),
  13. 'titleslogan' => t('Title and slogan'),
  14. 'text' => t('Text color'),
  15. 'link' => t('Link color'),
  16. ),
  17. // Pre-defined color schemes.
  18. 'schemes' => array(
  19. 'default' => array(
  20. 'title' => t('Blue Lagoon (default)'),
  21. 'colors' => array(
  22. 'top' => '#0779bf',
  23. 'bottom' => '#48a9e4',
  24. 'bg' => '#ffffff',
  25. 'sidebar' => '#f6f6f2',
  26. 'sidebarborders' => '#f9f9f9',
  27. 'footer' => '#292929',
  28. 'titleslogan' => '#fffeff',
  29. 'text' => '#3b3b3b',
  30. 'link' => '#0071B3',
  31. ),
  32. ),
  33. 'firehouse' => array(
  34. 'title' => t('Firehouse'),
  35. 'colors' => array(
  36. 'top' => '#cd2d2d',
  37. 'bottom' => '#cf3535',
  38. 'bg' => '#ffffff',
  39. 'sidebar' => '#f1f4f0',
  40. 'sidebarborders' => '#ededed',
  41. 'footer' => '#1f1d1c',
  42. 'titleslogan' => '#fffeff',
  43. 'text' => '#3b3b3b',
  44. 'link' => '#d6121f',
  45. ),
  46. ),
  47. 'ice' => array(
  48. 'title' => t('Ice'),
  49. 'colors' => array(
  50. 'top' => '#d0d0d0',
  51. 'bottom' => '#c2c4c5',
  52. 'bg' => '#ffffff',
  53. 'sidebar' => '#ffffff',
  54. 'sidebarborders' => '#cccccc',
  55. 'footer' => '#24272c',
  56. 'titleslogan' => '#000000',
  57. 'text' => '#4a4a4a',
  58. 'link' => '#019dbf',
  59. ),
  60. ),
  61. 'plum' => array(
  62. 'title' => t('Plum'),
  63. 'colors' => array(
  64. 'top' => '#4c1c58',
  65. 'bottom' => '#593662',
  66. 'bg' => '#fffdf7',
  67. 'sidebar' => '#edede7',
  68. 'sidebarborders' => '#e7e7e7',
  69. 'footer' => '#2c2c28',
  70. 'titleslogan' => '#ffffff',
  71. 'text' => '#301313',
  72. 'link' => '#9d408d',
  73. ),
  74. ),
  75. 'slate' => array(
  76. 'title' => t('Slate'),
  77. 'colors' => array(
  78. 'top' => '#4a4a4a',
  79. 'bottom' => '#4e4e4e',
  80. 'bg' => '#ffffff',
  81. 'sidebar' => '#ffffff',
  82. 'sidebarborders' => '#d0d0d0',
  83. 'footer' => '#161617',
  84. 'titleslogan' => '#ffffff',
  85. 'text' => '#3b3b3b',
  86. 'link' => '#0073b6',
  87. ),
  88. ),
  89. ),
  90. // CSS files (excluding @import) to rewrite with new color scheme.
  91. 'css' => array(
  92. 'css/colors.css',
  93. ),
  94. // Files to copy.
  95. 'copy' => array(
  96. 'logo.png',
  97. ),
  98. // Gradient definitions.
  99. 'gradients' => array(
  100. array(
  101. // (x, y, width, height).
  102. 'dimension' => array(0, 0, 0, 0),
  103. // Direction of gradient ('vertical' or 'horizontal').
  104. 'direction' => 'vertical',
  105. // Keys of colors to use for the gradient.
  106. 'colors' => array('top', 'bottom'),
  107. ),
  108. ),
  109. // Color areas to fill (x, y, width, height).
  110. 'fill' => array(),
  111. // Coordinates of all the theme slices (x, y, width, height)
  112. // with their filename as used in the stylesheet.
  113. 'slices' => array(),
  114. // Reference color used for blending. Matches the base.png's colors.
  115. 'blend_target' => '#ffffff',
  116. // Preview files.
  117. 'preview_css' => 'color/preview.css',
  118. 'preview_js' => 'color/preview.js',
  119. 'preview_html' => 'color/preview.html',
  120. // Base file for image generation.
  121. 'base_image' => 'color/base.png',
  122. );