You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

229 lines
8.5KB

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. /* List of color options:
  4. COLOR_BLACK
  5. COLOR_RED
  6. COLOR_GREEN
  7. COLOR_YELLOW
  8. COLOR_BLUE
  9. COLOR_MAGENTA
  10. COLOR_CYAN
  11. COLOR_WHITE
  12. -1 // for transparent (only works if that is your default terminal background)
  13. */
  14. /* --- Valid presets --- */
  15. #define MONOCHROME_PRESET 1
  16. #define COLORFUL_PRESET 2
  17. // Your own preset.
  18. // NOTE: you have to assign a color
  19. // to each end every macro
  20. #define COLORFUL_CUSTOM 3
  21. /* --- Preset selection --- */
  22. // Set to one of the numerical values above
  23. #define COLOR_PRESET 2
  24. #if COLOR_PRESET == 1
  25. # define COLOR_STD_FG COLOR_WHITE
  26. # define COLOR_STD_BG COLOR_BLACK
  27. # define COLOR_FRAME_FG COLOR_WHITE
  28. # define COLOR_FRAME_BG COLOR_BLACK
  29. # define COLOR_PROMPT_FG COLOR_WHITE
  30. # define COLOR_PROMPT_BG COLOR_BLACK
  31. # define COLOR_CURSOR COLOR_WHITE
  32. # define COLOR_FIELD_FG COLOR_WHITE
  33. # define COLOR_FIELD_BG COLOR_BLACK
  34. # define COLOR_FIELD_SELECTED_FG COLOR_WHITE
  35. # define COLOR_FIELD_SELECTED_BG COLOR_BLACK
  36. # define COLOR_HELP_FG COLOR_WHITE
  37. # define COLOR_HELP_BG COLOR_BLACK
  38. # define COLOR_TOOLTIP_FG COLOR_WHITE
  39. # define COLOR_TOOLTIP_BG COLOR_BLACK
  40. # define COLOR_CASE_FG COLOR_WHITE
  41. # define COLOR_CASE_BG COLOR_BLACK
  42. # define COLOR_MESSAGE_FG COLOR_WHITE
  43. # define COLOR_MESSAGE_BG COLOR_BLACK
  44. # define COLOR_PATTERN_FG COLOR_WHITE
  45. # define COLOR_PATTERN_BG COLOR_BLACK
  46. # define COLOR_TABLE_HEADER_FG COLOR_WHITE
  47. # define COLOR_TABLE_HEADER_BG COLOR_BLACK
  48. # define COLOR_TABLE_ID_FG COLOR_WHITE
  49. # define COLOR_TABLE_ID_BG COLOR_BLACK
  50. # define COLOR_TABLE_MARK_FG COLOR_WHITE
  51. # define COLOR_TABLE_MARK_BG COLOR_BLACK
  52. # define COLOR_TABLE_COL_FILE_FG COLOR_WHITE
  53. # define COLOR_TABLE_COL_FILE_BG COLOR_BLACK
  54. # define COLOR_TABLE_COL_FUNCTION_FG COLOR_WHITE
  55. # define COLOR_TABLE_COL_FUNCTION_BG COLOR_BLACK
  56. # define COLOR_TABLE_COL_LINE_FG COLOR_WHITE
  57. # define COLOR_TABLE_COL_LINE_BG COLOR_BLACK
  58. # define COLOR_TABLE_COL_TEXT_FG COLOR_WHITE
  59. # define COLOR_TABLE_COL_TEXT_BG COLOR_BLACK
  60. # define COLOR_TABLE_SELECTED_ID_FG COLOR_WHITE
  61. # define COLOR_TABLE_SELECTED_ID_BG COLOR_BLACK
  62. # define COLOR_TABLE_SELECTED_MARK_FG COLOR_WHITE
  63. # define COLOR_TABLE_SELECTED_MARK_BG COLOR_BLACK
  64. # define COLOR_TABLE_COL_SELECTED_FILE_FG COLOR_WHITE
  65. # define COLOR_TABLE_COL_SELECTED_FILE_BG COLOR_BLACK
  66. # define COLOR_TABLE_COL_SELECTED_FUNCTION_FG COLOR_WHITE
  67. # define COLOR_TABLE_COL_SELECTED_FUNCTION_BG COLOR_BLACK
  68. # define COLOR_TABLE_COL_SELECTED_LINE_FG COLOR_WHITE
  69. # define COLOR_TABLE_COL_SELECTED_LINE_BG COLOR_BLACK
  70. # define COLOR_TABLE_COL_SELECTED_TEXT_FG COLOR_WHITE
  71. # define COLOR_TABLE_COL_SELECTED_TEXT_BG COLOR_BLACK
  72. # define COLOR_PAGER_MSG_FG COLOR_WHITE
  73. # define COLOR_PAGER_MSG_BG COLOR_BLACK
  74. #elif COLOR_PRESET == 2
  75. # define COLOR_STD_FG COLOR_WHITE
  76. # define COLOR_STD_BG -1
  77. # define COLOR_FRAME_FG COLOR_GREEN
  78. # define COLOR_FRAME_BG -1
  79. # define COLOR_PROMPT_FG COLOR_BLUE
  80. # define COLOR_PROMPT_BG -1
  81. # define COLOR_CURSOR COLOR_WHITE
  82. # define COLOR_FIELD_FG COLOR_WHITE
  83. # define COLOR_FIELD_BG -1
  84. # define COLOR_FIELD_SELECTED_FG COLOR_BLACK
  85. # define COLOR_FIELD_SELECTED_BG COLOR_WHITE
  86. # define COLOR_HELP_FG COLOR_YELLOW
  87. # define COLOR_HELP_BG -1
  88. # define COLOR_TOOLTIP_FG COLOR_WHITE
  89. # define COLOR_TOOLTIP_BG COLOR_GREEN
  90. # define COLOR_CASE_FG COLOR_GREEN
  91. # define COLOR_CASE_BG -1
  92. # define COLOR_MESSAGE_FG COLOR_WHITE
  93. # define COLOR_MESSAGE_BG COLOR_BLACK
  94. # define COLOR_PATTERN_FG COLOR_WHITE
  95. # define COLOR_PATTERN_BG -1
  96. # define COLOR_TABLE_HEADER_FG COLOR_YELLOW
  97. # define COLOR_TABLE_HEADER_BG -1
  98. # define COLOR_TABLE_ID_FG COLOR_CYAN
  99. # define COLOR_TABLE_ID_BG -1
  100. # define COLOR_TABLE_MARK_FG COLOR_WHITE
  101. # define COLOR_TABLE_MARK_BG -1
  102. # define COLOR_TABLE_COL_FILE_FG COLOR_MAGENTA
  103. # define COLOR_TABLE_COL_FILE_BG -1
  104. # define COLOR_TABLE_COL_FUNCTION_FG COLOR_RED
  105. # define COLOR_TABLE_COL_FUNCTION_BG -1
  106. # define COLOR_TABLE_COL_LINE_FG COLOR_CYAN
  107. # define COLOR_TABLE_COL_LINE_BG -1
  108. # define COLOR_TABLE_COL_TEXT_FG COLOR_GREEN
  109. # define COLOR_TABLE_COL_TEXT_BG -1
  110. # define COLOR_TABLE_SELECTED_ID_FG COLOR_CYAN
  111. # define COLOR_TABLE_SELECTED_ID_BG COLOR_WHITE
  112. # define COLOR_TABLE_SELECTED_MARK_FG COLOR_BLACK
  113. # define COLOR_TABLE_SELECTED_MARK_BG COLOR_WHITE
  114. # define COLOR_TABLE_COL_SELECTED_FILE_FG COLOR_MAGENTA
  115. # define COLOR_TABLE_COL_SELECTED_FILE_BG COLOR_WHITE
  116. # define COLOR_TABLE_COL_SELECTED_FUNCTION_FG COLOR_RED
  117. # define COLOR_TABLE_COL_SELECTED_FUNCTION_BG COLOR_WHITE
  118. # define COLOR_TABLE_COL_SELECTED_LINE_FG COLOR_CYAN
  119. # define COLOR_TABLE_COL_SELECTED_LINE_BG COLOR_WHITE
  120. # define COLOR_TABLE_COL_SELECTED_TEXT_FG COLOR_GREEN
  121. # define COLOR_TABLE_COL_SELECTED_TEXT_BG COLOR_WHITE
  122. # define COLOR_PAGER_MSG_FG COLOR_YELLOW
  123. # define COLOR_PAGER_MSG_BG COLOR_WHITE
  124. #elif COLOR_PRESET == 3
  125. # define COLOR_STD_FG
  126. # define COLOR_STD_BG
  127. # define COLOR_FRAME_FG
  128. # define COLOR_FRAME_BG
  129. # define COLOR_PROMPT_FG
  130. # define COLOR_PROMPT_BG
  131. # define COLOR_CURSOR
  132. # define COLOR_FIELD_FG
  133. # define COLOR_FIELD_BG
  134. # define COLOR_FIELD_SELECTED_FG
  135. # define COLOR_FIELD_SELECTED_BG
  136. # define COLOR_HELP_FG
  137. # define COLOR_HELP_BG
  138. # define COLOR_TOOLTIP_FG
  139. # define COLOR_TOOLTIP_BG
  140. # define COLOR_CASE_FG
  141. # define COLOR_CASE_BG
  142. # define COLOR_MESSAGE_FG
  143. # define COLOR_MESSAGE_BG
  144. # define COLOR_PATTERN_FG
  145. # define COLOR_PATTERN_BG
  146. # define COLOR_TABLE_HEADER_FG
  147. # define COLOR_TABLE_HEADER_BG
  148. # define COLOR_TABLE_ID_FG
  149. # define COLOR_TABLE_ID_BG
  150. # define COLOR_TABLE_MARK_FG
  151. # define COLOR_TABLE_MARK_BG
  152. # define COLOR_TABLE_COL_FILE_FG
  153. # define COLOR_TABLE_COL_FILE_BG
  154. # define COLOR_TABLE_COL_FUNCTION_FG
  155. # define COLOR_TABLE_COL_FUNCTION_BG
  156. # define COLOR_TABLE_COL_LINE_FG
  157. # define COLOR_TABLE_COL_LINE_BG
  158. # define COLOR_TABLE_COL_TEXT_FG
  159. # define COLOR_TABLE_COL_TEXT_BG
  160. # define COLOR_TABLE_SELECTED_ID_FG
  161. # define COLOR_TABLE_SELECTED_ID_BG
  162. # define COLOR_TABLE_SELECTED_MARK_FG
  163. # define COLOR_TABLE_SELECTED_MARK_BG
  164. # define COLOR_TABLE_COL_SELECTED_FILE_FG
  165. # define COLOR_TABLE_COL_SELECTED_FILE_BG
  166. # define COLOR_TABLE_COL_SELECTED_FUNCTION_FG
  167. # define COLOR_TABLE_COL_SELECTED_FUNCTION_BG
  168. # define COLOR_TABLE_COL_SELECTED_LINE_FG
  169. # define COLOR_TABLE_COL_SELECTED_LINE_BG
  170. # define COLOR_TABLE_COL_SELECTED_TEXT_FG
  171. # define COLOR_TABLE_COL_SELECTED_TEXT_BG
  172. # define COLOR_PAGER_MSG_FG
  173. # define COLOR_PAGER_MSG_BG
  174. #else
  175. # error "Color profile not valid"
  176. #endif
  177. /* ############################################### */
  178. /* ### Don't touch if you are just configuring ### */
  179. enum color_pairs{
  180. COLOR_PAIR_STD = 1,
  181. COLOR_PAIR_FRAME,
  182. COLOR_PAIR_PROMPT,
  183. COLOR_PAIR_FIELD,
  184. COLOR_PAIR_FIELD_SELECTED,
  185. COLOR_PAIR_HELP,
  186. COLOR_PAIR_TOOLTIP,
  187. COLOR_PAIR_CASE,
  188. COLOR_PAIR_PATTERN,
  189. COLOR_PAIR_MESSAGE,
  190. COLOR_PAIR_TABLE_HEADER,
  191. COLOR_PAIR_TABLE_ID,
  192. COLOR_PAIR_TABLE_MARK,
  193. COLOR_PAIR_TABLE_COL_FILE,
  194. COLOR_PAIR_TABLE_COL_FUNCTION,
  195. COLOR_PAIR_TABLE_COL_LINE,
  196. COLOR_PAIR_TABLE_COL_TEXT,
  197. COLOR_PAIR_TABLE_SELECTED_ID,
  198. COLOR_PAIR_TABLE_SELECTED_MARK,
  199. COLOR_PAIR_TABLE_COL_SELECTED_FILE,
  200. COLOR_PAIR_TABLE_COL_SELECTED_FUNCTION,
  201. COLOR_PAIR_TABLE_COL_SELECTED_LINE,
  202. COLOR_PAIR_TABLE_COL_SELECTED_TEXT,
  203. COLOR_PAIR_PAGER_MSG
  204. };
  205. #define easy_init_pair(x) init_pair(COLOR_PAIR_ ## x, COLOR_ ## x ## _FG, COLOR_ ## x ## _BG)
  206. /* Other options:
  207. A_NORMAL : Normal display (no highlight)
  208. A_UNDERLINE : Underlining
  209. A_REVERSE : Reverse video
  210. A_BLINK : Blinking
  211. A_BOLD : Extra bright or bold
  212. A_STANDOUT : Best highlighting mode of the terminal.
  213. NOTE: you can specify more than one by separating the options by a '|' sign.
  214. { A_BLINK | A_BOLD }
  215. */
  216. #define ATTRIBUTE_FIELD_SELECTED A_BOLD
  217. #define ATTRIBUTE_RESULT_SELECTED A_BOLD
  218. #endif