home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / epmmac.zip / COLORS.E < prev    next >
Text File  |  1993-09-29  |  5KB  |  114 lines

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