themes.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. $color[15] = '#xxxxxx';
  30. ?>
  31. ---<END>---
  32. And here is a description of what the different entries in the array
  33. are colors of, and the letter before the number denotes 'b' for background and
  34. 'f' for foreground colors.
  35. b 0: Title Bar at the top of the page header
  36. f 1: <not currently used>
  37. f 2: Error messages, usually red
  38. b 3: Left folder list background color
  39. b 4: Normal background color
  40. b 5: Header of the message index [From, Date, Subject]
  41. f 6: Normal text on the left folder list
  42. f 7: Links in the right frame
  43. f 8: Normal text [usually black]
  44. b 9: Darker version of #0
  45. b 10: Darker version of #9
  46. f 11: Special folders color [Inbox, Trash, Sent]
  47. b 12: Alternate color for message list [alters between 4 and this one]
  48. f 13: Color for single-quoted text ('> text') when reading (default: #800000)
  49. f 14: Color for text with more than one quote (default: #FF0000)
  50. f 15: Non-selectable folders in the left frame (defaults to $color[6])
  51. Next all you have to do is run conf.pl and add the theme to the list
  52. of themes available to you.
  53. $Id$