File: examples_colors.c

package info (click to toggle)
aca 0.1.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 569
  • sloc: ansic: 4,254; sh: 2,237; makefile: 256
file content (61 lines) | stat: -rw-r--r-- 3,012 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

#include <aca/aca.h>

#include "examples_colors.h"

   TemplateColor	examples_TplC = {
   
   /* --- dialogs color --- */
   
   /* bgr    */		BLACK_WHITE,
   /* header */		YELLOW_WHITE,
   /* warning */	WHITE_RED,		
   
   /* --- widgets color --- */
   
   /* buttons */	{ BLACK_CYAN, BLACK_WHITE, YELLOW_CYAN, YELLOW_WHITE },
   /* radio   */	{ BLACK_CYAN, BLACK_WHITE, YELLOW_CYAN, YELLOW_WHITE },
   /* input   */	{ BLACK_CYAN, BLACK_CYAN, 0,0,0,0, BLACK_WHITE, 
   			  BLACK_WHITE, YELLOW_WHITE, YELLOW_WHITE },
   /* menu_in */   	{ MENU_WHITE_BLACK, BLACK_WHITE, 0,0, BLUE_WHITE, BLUE_WHITE, 
   			  BLUE_WHITE, BLUE_WHITE, YELLOW_WHITE, YELLOW_WHITE, WHITE_BLUE },  
   /* menu_out */  	{ MENU_WHITE_BLACK, BLACK_CYAN, YELLOW_BLACK, YELLOW_CYAN, BLACK_CYAN, 0, 
   			  WHITE_BLACK, BLACK_CYAN, YELLOW_BLACK, YELLOW_CYAN, WHITE_BLUE },
   /*menu_direct*/ 	{ BLACK_CYAN,  WHITE_BLUE, 0,0, WHITE_BLUE, WHITE_BLUE, 
   			  GREEN_BLUE,  GREEN_BLUE, GREEN_BLUE, GREEN_BLUE, WHITE_BLUE }
   	
   };

   void examples_colors()
   {
      aca_init_color(EXAMPLES_COLOR_NUM);
   
       	/*	       -color-          -foreground-   -background-	-w/b-	*/         	    
      aca_init_pair( BLACK_WHITE,	COLOR_BLACK,	COLOR_WHITE,	A_NORMAL);
      aca_init_pair( YELLOW_WHITE, 	COLOR_YELLOW,	COLOR_WHITE,	A_NORMAL);
      aca_init_pair( BLUE_WHITE,	COLOR_BLUE,	COLOR_WHITE,	A_NORMAL);       	
      aca_init_pair( GREEN_WHITE,	COLOR_GREEN,	COLOR_WHITE,	A_NORMAL);       	
      aca_init_pair( BLACK_CYAN,	COLOR_BLACK,	COLOR_CYAN,	A_REVERSE);      
      aca_init_pair( WHITE_BLUE,	COLOR_WHITE,	COLOR_BLUE,	A_NORMAL);
      aca_init_pair( WHITE_RED,		COLOR_WHITE,	COLOR_RED,	A_REVERSE);    
      aca_init_pair( YELLOW_RED,	COLOR_YELLOW,	COLOR_RED,	A_NORMAL);           	
      aca_init_pair( WHITE_CYAN,	COLOR_WHITE,	COLOR_CYAN,	A_NORMAL);
      aca_init_pair( WHITE_BLACK,	COLOR_WHITE,	COLOR_BLACK,	A_NORMAL);
      aca_init_pair( MENU_WHITE_BLACK,	COLOR_WHITE,	COLOR_BLACK,	A_REVERSE);
      aca_init_pair( YELLOW_BLUE,	COLOR_YELLOW,	COLOR_BLUE,	A_NORMAL);
      aca_init_pair( YELLOW_CYAN,	COLOR_YELLOW,	COLOR_CYAN,	A_REVERSE);
      aca_init_pair( YELLOW_BLACK, 	COLOR_YELLOW,	COLOR_BLACK,	A_NORMAL);  
      aca_init_pair( RED_BLACK,		COLOR_RED,	COLOR_BLACK,	A_NORMAL);  
      aca_init_pair( RED_BLUE,		COLOR_RED,	COLOR_BLUE,	A_NORMAL);  
      aca_init_pair( RED_CYAN,		COLOR_RED,	COLOR_CYAN,	A_NORMAL);           
      aca_init_pair( ZOMBIE_RED_CYAN,	COLOR_RED,	COLOR_CYAN,	A_REVERSE);                 	
      aca_init_pair( GREEN_BLUE,	COLOR_GREEN,	COLOR_BLUE,	A_NORMAL);  
      aca_init_pair( GREEN_CYAN,	COLOR_GREEN,	COLOR_CYAN,	A_NORMAL);
      aca_init_pair( RUN_GREEN_CYAN,	COLOR_GREEN,	COLOR_CYAN,	A_REVERSE);       	
      aca_init_pair( MAGENTA_BLUE, 	COLOR_MAGENTA,	COLOR_BLUE,	A_NORMAL);       	
      aca_init_pair( BLUE_CYAN, 	COLOR_BLUE,	COLOR_CYAN,	A_REVERSE);       	
      aca_init_pair( RED_WHITE, 	COLOR_RED,	COLOR_WHITE,	A_NORMAL);       	
   
      set_TplC(&examples_TplC);	
   }