themes.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Themes
  2. ======
  3. To create a theme, it is very simple. Just go into the themes/ directory
  4. and create a file called yourtheme_theme.php. You then need to create an
  5. array with 13 elements (0-12). Below is an example followed by a
  6. description of what the different entries are for.
  7. ---<START>---
  8. <?php
  9. # My Theme
  10. # Author: My Name
  11. # Date: Today's Date
  12. #
  13. # Optional description
  14. $color[0] = '#xxxxxx';
  15. $color[1] = '#xxxxxx';
  16. $color[2] = '#xxxxxx';
  17. $color[3] = '#xxxxxx';
  18. $color[4] = '#xxxxxx';
  19. $color[5] = '#xxxxxx';
  20. $color[6] = '#xxxxxx';
  21. $color[7] = '#xxxxxx';
  22. $color[8] = '#xxxxxx';
  23. $color[9] = '#xxxxxx';
  24. $color[10] = '#xxxxxx';
  25. $color[11] = '#xxxxxx';
  26. $color[12] = '#xxxxxx';
  27. $color[13] = '#xxxxxx';
  28. $color[14] = '#xxxxxx';
  29. ?>
  30. ---<END>---
  31. And here is a description of what the different entries in the array
  32. are colors of, and the letter before the number denotes 'b' for background and
  33. 'f' for foreground colors.
  34. b 0: Title Bar at the top of the page header
  35. f 1: <not currently used>
  36. f 2: Error messages, usually red
  37. b 3: Left folder list background color
  38. b 4: Normal background color
  39. b 5: Header of the message index [From, Date, Subject]
  40. f 6: Normal text on the left folder list
  41. f 7: Links in the right frame
  42. f 8: Normal text [usually black]
  43. b 9: Darker version of #0
  44. b 10: Darker version of #9
  45. f 11: Special folders color [Inbox, Trash, Sent]
  46. b 12: Alternate color for message list [alters between 4 and this one]
  47. f 13: Color for single-quoted text ('> text') when reading (default: #800000)
  48. f 14: Color for text with more than one quote (default: #FF0000)
  49. f 15: Non-selectable folders in the left frame (defaults to $color[6])
  50. Next all you have to do is run conf.pl and add the theme to the list
  51. of themes available to you. If you would like your theme to be
  52. included in the distribution of SquirrelMail, just email it to
  53. <captbunzo@squirrelmail.org>.