mirror of the now-defunct rocklinux.org
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.

162 lines
5.3 KiB

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