color.inc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. );