Take care of one BSOD in NtGdiDdCreateDirectDrawObject, it is not correct fix, it...
[reactos.git] / rosapps / mc / src / color.h
1 #ifndef __COLOR_H
2 #define __COLOR_H
3
4 void init_colors (void);
5 void toggle_color_mode (void);
6 void configure_colors_string (char *color_string);
7
8 extern int hascolors;
9 extern int use_colors;
10 extern int disable_colors;
11
12 extern int attr_pairs [];
13 #ifdef HAVE_GNOME
14 # define MY_COLOR_PAIR(x) x
15 # define PORT_COLOR(co,bw) co
16 #else
17 # ifdef HAVE_SLANG
18 # define MY_COLOR_PAIR(x) COLOR_PAIR(x)
19 # else
20 # define MY_COLOR_PAIR(x) (COLOR_PAIR(x) | attr_pairs [x])
21 # endif
22 #define PORT_COLOR(co,bw) (use_colors?co:bw)
23 #endif
24
25 #define NORMAL_COLOR (PORT_COLOR (MY_COLOR_PAIR (1), 0))
26 #define SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (2),A_REVERSE))
27 #define MARKED_COLOR (PORT_COLOR (MY_COLOR_PAIR (3),A_BOLD))
28 #ifdef HAVE_SLANG
29 #define MARKED_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (4),(SLtt_Use_Ansi_Colors ? A_BOLD_REVERSE : A_REVERSE | A_BOLD)))
30 #else
31 #define MARKED_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (4),A_REVERSE | A_BOLD))
32 #endif
33 #define ERROR_COLOR (PORT_COLOR (MY_COLOR_PAIR (5),0))
34 #define MENU_ENTRY_COLOR (PORT_COLOR (MY_COLOR_PAIR (6),A_REVERSE))
35 #define REVERSE_COLOR (PORT_COLOR (MY_COLOR_PAIR(7),A_REVERSE))
36 #define Q_SELECTED_COLOR (PORT_COLOR (SELECTED_COLOR, 0))
37 #define Q_UNSELECTED_COLOR REVERSE_COLOR
38 #define VIEW_UNDERLINED_COLOR (PORT_COLOR (MY_COLOR_PAIR(12),A_UNDERLINE))
39 #define MENU_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR(13),A_BOLD))
40 #define MENU_HOT_COLOR (PORT_COLOR (MY_COLOR_PAIR(14),0))
41 #define MENU_HOTSEL_COLOR (PORT_COLOR (MY_COLOR_PAIR(15),0))
42
43 /*
44 * This should be selectable independently. Default has to be black background
45 * foreground does not matter at all.
46 */
47 #define GAUGE_COLOR (PORT_COLOR (MY_COLOR_PAIR(21),0))
48 #define INPUT_COLOR (PORT_COLOR (MY_COLOR_PAIR(22),0))
49
50 #ifdef HAVE_SLANG
51 # define DEFAULT_COLOR (PORT_COLOR (MY_COLOR_PAIR(31),0))
52 # else
53 # define DEFAULT_COLOR A_NORMAL
54 #endif
55 #define HELP_NORMAL_COLOR (PORT_COLOR (MY_COLOR_PAIR(16),A_REVERSE))
56 #define HELP_ITALIC_COLOR (PORT_COLOR (MY_COLOR_PAIR(17),A_REVERSE))
57 #define HELP_BOLD_COLOR (PORT_COLOR (MY_COLOR_PAIR(18),A_REVERSE))
58 #define HELP_LINK_COLOR (PORT_COLOR (MY_COLOR_PAIR(19),0))
59 #define HELP_SLINK_COLOR (PORT_COLOR (MY_COLOR_PAIR(20),A_BOLD))
60
61 extern int sel_mark_color [4];
62 extern int dialog_colors [4];
63
64 #define COLOR_NORMAL (PORT_COLOR (MY_COLOR_PAIR (8),A_REVERSE))
65 #define COLOR_FOCUS (PORT_COLOR (MY_COLOR_PAIR (9),A_BOLD))
66 #define COLOR_HOT_NORMAL (PORT_COLOR (MY_COLOR_PAIR (10),0))
67 #define COLOR_HOT_FOCUS (PORT_COLOR (MY_COLOR_PAIR (11),0))
68
69 /* Add this to color panel, on BW all pairs are normal */
70 #define STALLED_COLOR (PORT_COLOR (MY_COLOR_PAIR (12),0))
71
72 #define DIRECTORY_COLOR (PORT_COLOR (MY_COLOR_PAIR (23),0))
73 #define EXECUTABLE_COLOR (PORT_COLOR (MY_COLOR_PAIR (24),0))
74 #define LINK_COLOR (PORT_COLOR (MY_COLOR_PAIR (25),0))
75 #define DEVICE_COLOR (PORT_COLOR (MY_COLOR_PAIR (26),0))
76 #define SPECIAL_COLOR (PORT_COLOR (MY_COLOR_PAIR (27),0))
77 #define CORE_COLOR (PORT_COLOR (MY_COLOR_PAIR (28),0))
78
79 #endif /* __COLOR_H */
80