1 | /****************************** Module Header *******************************
|
---|
2 | *
|
---|
3 | * Module Name: colors.e
|
---|
4 | *
|
---|
5 | * Copyright (c) Netlabs EPM Distribution Project 2002
|
---|
6 | *
|
---|
7 | * $Id: colors.e 2417 2011-05-15 23:32:51Z aschn $
|
---|
8 | *
|
---|
9 | * ===========================================================================
|
---|
10 | *
|
---|
11 | * This file is part of the Netlabs EPM Distribution package and is free
|
---|
12 | * software. You can redistribute it and/or modify it under the terms of the
|
---|
13 | * GNU General Public License as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * Netlabs EPM Distribution. This library is distributed in the hope that it
|
---|
16 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
---|
17 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
18 | * General Public License for more details.
|
---|
19 | *
|
---|
20 | ****************************************************************************/
|
---|
21 | /*****************************************************************************/
|
---|
22 | /* */
|
---|
23 | /* COLORS.E. Color setting is concentrated here. This does two things: */
|
---|
24 | /* */
|
---|
25 | /* 1. Defines mnemonic constants for the color numbers, */
|
---|
26 | /* so the rest of the files can refer to "RED" rather than 4. */
|
---|
27 | /* 2. Configures the standard colors, by defining mnemonic field names */
|
---|
28 | /* such as STATUSCOLOR. */
|
---|
29 | /* */
|
---|
30 | /* To configure your colors, copy the appropriate definitions from the lower */
|
---|
31 | /* half to your MYCNF.E file, and modify them as desired. E.g., */
|
---|
32 | /* define */
|
---|
33 | /* COMMANDCOLOR = Light_Cyan + MagentaB */
|
---|
34 | /* MARKCOLOR = White + CyanB */
|
---|
35 | /* */
|
---|
36 | /*****************************************************************************/
|
---|
37 |
|
---|
38 | const
|
---|
39 | BLACK = 0
|
---|
40 | BLUE = 01
|
---|
41 | GREEN = 02
|
---|
42 | CYAN = 03
|
---|
43 | RED = 04
|
---|
44 | MAGENTA = 05
|
---|
45 | BROWN = 06
|
---|
46 | LIGHT_GREY = 07
|
---|
47 | DARK_GREY = 08
|
---|
48 | LIGHT_BLUE = 09
|
---|
49 | LIGHT_GREEN = 10
|
---|
50 | LIGHT_CYAN = 11
|
---|
51 | LIGHT_RED = 12
|
---|
52 | LIGHT_MAGENTA = 13
|
---|
53 | YELLOW = 14
|
---|
54 | WHITE = 15
|
---|
55 | BLACKB = 0
|
---|
56 | BLUEB = 16
|
---|
57 | GREENB = 32
|
---|
58 | CYANB = 48
|
---|
59 | REDB = 64
|
---|
60 | MAGENTAB = 80
|
---|
61 | BROWNB = 96
|
---|
62 | GREYB =112
|
---|
63 | LIGHT_GREYB =112 -- on a CGA. We assume if you're running OS/2, you
|
---|
64 | DARK_GREYB =128 -- have a better monitor. If you are actually
|
---|
65 | LIGHT_BLUEB =144 -- running OS/2 on a CGA, be sure that you specify
|
---|
66 | LIGHT_GREENB =160 -- BROWNB or GREYB instead of YELLOWB or WHITEB, or
|
---|
67 | LIGHT_CYANB =176 -- you'll get blinking characters.
|
---|
68 | LIGHT_REDB =192
|
---|
69 | LIGHT_MAGENTAB =208
|
---|
70 | YELLOWB =224
|
---|
71 | WHITEB =240
|
---|
72 |
|
---|
73 | BLINK =128 /* qualities */
|
---|
74 | UNDERLINE = 1
|
---|
75 | HIGH_INTENSITY = 8
|
---|
76 | NORMAL = 7
|
---|
77 | INVERSE =112
|
---|
78 | INVISIBLE = 0
|
---|
79 |
|
---|
80 |
|
---|
81 | /*********************** Standard color definitions. *************************/
|
---|
82 | ; These are DEFINEs rather than CONSTs, so that they can be overridden in
|
---|
83 | ; MYCNF.E, if desired.
|
---|
84 |
|
---|
85 | ; Note: COMMANDCOLOR is used for the status line and filename in zoom
|
---|
86 | ; window style 3. (E3 and EOS2)
|
---|
87 | define
|
---|
88 | STATUSCOLOR = WHITEB
|
---|
89 | DESKTOPCOLOR = LIGHT_GREY
|
---|
90 | MONOSTATUSCOLOR = NORMAL
|
---|
91 | FILENAMECOLOR = NORMAL
|
---|
92 | MONOFILENAMECOLOR = NORMAL
|
---|
93 | COMMANDCOLOR = WHITE+BROWNB
|
---|
94 | MONOCOMMANDCOLOR = INVERSE
|
---|
95 | FUNCTIONKEYTEXTCOLOR = CYAN
|
---|
96 | MONOFUNCTIONKEYTEXTCOLOR = NORMAL
|
---|
97 | WINDOWCOLOR = LIGHT_GREY + BLUEB
|
---|
98 | MONOWINDOWCOLOR = NORMAL
|
---|
99 | BOXCOLOR = YELLOW
|
---|
100 | MONOBOXCOLOR = NORMAL
|
---|
101 | CURSORCOLOR = BLACK + BROWNB
|
---|
102 | MONOCURSORCOLOR = UNDERLINE + HIGH_INTENSITY
|
---|
103 | MARKCOLOR = BLUE + GREYB
|
---|
104 | MONOMARKCOLOR = INVERSE
|
---|
105 | MESSAGECOLOR = LIGHT_RED + WHITEB
|
---|
106 | MONOMESSAGECOLOR = NORMAL
|
---|
107 |
|
---|
108 | ; E3 and EOS2 use all the above. EPM only uses MARKCOLOR, TEXTCOLOR, STATUSCOLOR
|
---|
109 | ; and MESSAGECOLOR (TEXTCOLOR is the same as WINDOWCOLOR).
|
---|
110 | TEXTCOLOR = WHITEB
|
---|
111 | DRAGCOLOR = YELLOW + MAGENTAB
|
---|
112 |
|
---|
113 | MODIFIED_WINDOWCOLOR = WHITE + BLUEB
|
---|
114 | MODIFIED_MARKCOLOR = BLUE + WHITEB
|
---|
115 | MODIFIED_FILENAMECOLOR = FILENAMECOLOR%16 * 16 + RED -- Red on same background.
|
---|
116 | MODIFIED_MONOFILENAMECOLOR = UNDERLINE
|
---|
117 | MODIFIED_FKTEXTCOLOR = BLACK + CYANB
|
---|
118 |
|
---|