colors.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * colors.h -- color attribute definitions
  3. *
  4. * AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. /*
  21. * Default color definitions
  22. *
  23. * *_FG = foreground
  24. * *_BG = background
  25. * *_HL = highlight?
  26. */
  27. #define SCREEN_FG COLOR_CYAN
  28. #define SCREEN_BG COLOR_BLUE
  29. #define SCREEN_HL TRUE
  30. #define SHADOW_FG COLOR_BLACK
  31. #define SHADOW_BG COLOR_BLACK
  32. #define SHADOW_HL TRUE
  33. #define DIALOG_FG COLOR_BLACK
  34. #define DIALOG_BG COLOR_WHITE
  35. #define DIALOG_HL FALSE
  36. #define TITLE_FG COLOR_YELLOW
  37. #define TITLE_BG COLOR_WHITE
  38. #define TITLE_HL TRUE
  39. #define BORDER_FG COLOR_WHITE
  40. #define BORDER_BG COLOR_WHITE
  41. #define BORDER_HL TRUE
  42. #define BUTTON_ACTIVE_FG COLOR_WHITE
  43. #define BUTTON_ACTIVE_BG COLOR_BLUE
  44. #define BUTTON_ACTIVE_HL TRUE
  45. #define BUTTON_INACTIVE_FG COLOR_BLACK
  46. #define BUTTON_INACTIVE_BG COLOR_WHITE
  47. #define BUTTON_INACTIVE_HL FALSE
  48. #define BUTTON_KEY_ACTIVE_FG COLOR_WHITE
  49. #define BUTTON_KEY_ACTIVE_BG COLOR_BLUE
  50. #define BUTTON_KEY_ACTIVE_HL TRUE
  51. #define BUTTON_KEY_INACTIVE_FG COLOR_RED
  52. #define BUTTON_KEY_INACTIVE_BG COLOR_WHITE
  53. #define BUTTON_KEY_INACTIVE_HL FALSE
  54. #define BUTTON_LABEL_ACTIVE_FG COLOR_YELLOW
  55. #define BUTTON_LABEL_ACTIVE_BG COLOR_BLUE
  56. #define BUTTON_LABEL_ACTIVE_HL TRUE
  57. #define BUTTON_LABEL_INACTIVE_FG COLOR_BLACK
  58. #define BUTTON_LABEL_INACTIVE_BG COLOR_WHITE
  59. #define BUTTON_LABEL_INACTIVE_HL TRUE
  60. #define INPUTBOX_FG COLOR_BLACK
  61. #define INPUTBOX_BG COLOR_WHITE
  62. #define INPUTBOX_HL FALSE
  63. #define INPUTBOX_BORDER_FG COLOR_BLACK
  64. #define INPUTBOX_BORDER_BG COLOR_WHITE
  65. #define INPUTBOX_BORDER_HL FALSE
  66. #define SEARCHBOX_FG COLOR_BLACK
  67. #define SEARCHBOX_BG COLOR_WHITE
  68. #define SEARCHBOX_HL FALSE
  69. #define SEARCHBOX_TITLE_FG COLOR_YELLOW
  70. #define SEARCHBOX_TITLE_BG COLOR_WHITE
  71. #define SEARCHBOX_TITLE_HL TRUE
  72. #define SEARCHBOX_BORDER_FG COLOR_WHITE
  73. #define SEARCHBOX_BORDER_BG COLOR_WHITE
  74. #define SEARCHBOX_BORDER_HL TRUE
  75. #define POSITION_INDICATOR_FG COLOR_YELLOW
  76. #define POSITION_INDICATOR_BG COLOR_WHITE
  77. #define POSITION_INDICATOR_HL TRUE
  78. #define MENUBOX_FG COLOR_BLACK
  79. #define MENUBOX_BG COLOR_WHITE
  80. #define MENUBOX_HL FALSE
  81. #define MENUBOX_BORDER_FG COLOR_WHITE
  82. #define MENUBOX_BORDER_BG COLOR_WHITE
  83. #define MENUBOX_BORDER_HL TRUE
  84. #define ITEM_FG COLOR_BLACK
  85. #define ITEM_BG COLOR_WHITE
  86. #define ITEM_HL FALSE
  87. #define ITEM_SELECTED_FG COLOR_WHITE
  88. #define ITEM_SELECTED_BG COLOR_BLUE
  89. #define ITEM_SELECTED_HL TRUE
  90. #define TAG_FG COLOR_YELLOW
  91. #define TAG_BG COLOR_WHITE
  92. #define TAG_HL TRUE
  93. #define TAG_SELECTED_FG COLOR_YELLOW
  94. #define TAG_SELECTED_BG COLOR_BLUE
  95. #define TAG_SELECTED_HL TRUE
  96. #define TAG_KEY_FG COLOR_YELLOW
  97. #define TAG_KEY_BG COLOR_WHITE
  98. #define TAG_KEY_HL TRUE
  99. #define TAG_KEY_SELECTED_FG COLOR_YELLOW
  100. #define TAG_KEY_SELECTED_BG COLOR_BLUE
  101. #define TAG_KEY_SELECTED_HL TRUE
  102. #define CHECK_FG COLOR_BLACK
  103. #define CHECK_BG COLOR_WHITE
  104. #define CHECK_HL FALSE
  105. #define CHECK_SELECTED_FG COLOR_WHITE
  106. #define CHECK_SELECTED_BG COLOR_BLUE
  107. #define CHECK_SELECTED_HL TRUE
  108. #define UARROW_FG COLOR_GREEN
  109. #define UARROW_BG COLOR_WHITE
  110. #define UARROW_HL TRUE
  111. #define DARROW_FG COLOR_GREEN
  112. #define DARROW_BG COLOR_WHITE
  113. #define DARROW_HL TRUE
  114. /* End of default color definitions */
  115. #define C_ATTR(x,y) ((x ? A_BOLD : 0) | COLOR_PAIR((y)))
  116. #define COLOR_NAME_LEN 10
  117. #define COLOR_COUNT 8
  118. /*
  119. * Global variables
  120. */
  121. typedef struct {
  122. char name[COLOR_NAME_LEN];
  123. int value;
  124. } color_names_st;
  125. extern color_names_st color_names[];
  126. extern int color_table[][3];