New color config file item: "COLOR HEADER LOCATION"

This commit is contained in:
Stas Degteff 2005-10-03 15:56:54 +00:00
parent 48a63cbd09
commit 041685ab02
7 changed files with 13 additions and 1 deletions

View File

@ -48,6 +48,7 @@ COLOR HEADER WINDOW LGrey on Black ; header text
COLOR HEADER FROM LGrey on Black ; header from field COLOR HEADER FROM LGrey on Black ; header from field
COLOR HEADER TO LGrey on Black ; header to field COLOR HEADER TO LGrey on Black ; header to field
COLOR HEADER SUBJECT LGrey on Black ; header subject COLOR HEADER SUBJECT LGrey on Black ; header subject
COLOR HEADER LOCATION LGrey on Black ; header location field
// Help Screens // Help Screens
COLOR HELP BTYPE 0 ; help border type COLOR HELP BTYPE 0 ; help border type

View File

@ -109,6 +109,7 @@
; HEADER FROM Header From field. ; HEADER FROM Header From field.
; HEADER TO Header To field. ; HEADER TO Header To field.
; HEADER SUBJECT Header Subject field. ; HEADER SUBJECT Header Subject field.
; HEADER LOCATION Header location field.
; ;
; The FROM/TO/SUBJECT colors supplement the HEADER WINDOW color. Note ; The FROM/TO/SUBJECT colors supplement the HEADER WINDOW color. Note
; that WINDOW will also set the FROM/TO/SUBJECT colors, so remember to ; that WINDOW will also set the FROM/TO/SUBJECT colors, so remember to
@ -265,6 +266,7 @@ COLOR HEADER HIGHLIGHT Yellow on Blue
COLOR HEADER INPUT Black on Red COLOR HEADER INPUT Black on Red
COLOR HEADER TITLE LGreen on Blue COLOR HEADER TITLE LGreen on Blue
COLOR HEADER WINDOW LGrey on Blue COLOR HEADER WINDOW LGrey on Blue
COLOR HEADER LOCATION LGrey on Black
// ==== •¥«¯ ¢ë§ë¢ ¥¬ë© ¯® F1 ==== // ==== •¥«¯ ¢ë§ë¢ ¥¬ë© ¯® F1 ====

View File

@ -136,6 +136,7 @@ const word CRC_WINDOW = 0xCEFE;
const word CRC_FROM = 0x9290; const word CRC_FROM = 0x9290;
const word CRC_TO = 0x544F; const word CRC_TO = 0x544F;
const word CRC_SUBJECT = 0xF861; const word CRC_SUBJECT = 0xF861;
const word CRC_LOCATION = 0x9E67;
const word CRC_KLUDGE = 0xA600; const word CRC_KLUDGE = 0xA600;
const word CRC_HIDDEN = 0xE465; const word CRC_HIDDEN = 0xE465;
const word CRC_TAGLINE = 0xC328; const word CRC_TAGLINE = 0xC328;
@ -497,6 +498,9 @@ void GetColors(char* value) {
case CRC_SUBJECT: case CRC_SUBJECT:
wptr->_Subject = attr; wptr->_Subject = attr;
break; break;
case CRC_LOCATION:
wptr->_Location = attr;
break;
case CRC_KLUDGE: case CRC_KLUDGE:
wptr->_Kludge = attr; wptr->_Kludge = attr;
break; break;

View File

@ -650,6 +650,7 @@ struct SaveUtil {
#define _Highlight c[4] #define _Highlight c[4]
#define _Noselect c[5] #define _Noselect c[5]
#define _Kludge c[5] #define _Kludge c[5]
#define _Location c[5]
#define _Tearline c[6] #define _Tearline c[6]
#define _Edit c[6] #define _Edit c[6]
#define _Block c[7] #define _Block c[7]
@ -733,6 +734,7 @@ struct SaveUtil {
#define C_HEADBY GC_HEAD_._From #define C_HEADBY GC_HEAD_._From
#define C_HEADTO GC_HEAD_._To #define C_HEADTO GC_HEAD_._To
#define C_HEADRE GC_HEAD_._Subject #define C_HEADRE GC_HEAD_._Subject
#define C_HEADLOC GC_HEAD_._Location
#define C_ASKW GC_ASK__._Window #define C_ASKW GC_ASK__._Window
#define C_ASKB GC_ASK__._Border #define C_ASKB GC_ASK__._Border

View File

@ -207,6 +207,7 @@ void Reader() {
HeaderView->from_color = C_HEADBY; HeaderView->from_color = C_HEADBY;
HeaderView->to_color = C_HEADTO; HeaderView->to_color = C_HEADTO;
HeaderView->subject_color = C_HEADRE; HeaderView->subject_color = C_HEADRE;
HeaderView->location_color = C_HEADLOC;
HeaderView->Create(); HeaderView->Create();
BodyView->at_row = 6; BodyView->at_row = 6;

View File

@ -39,6 +39,7 @@ GMsgHeaderView::GMsgHeaderView() {
at_row = at_column = width = height = 0; at_row = at_column = width = height = 0;
border_type = gwindow::bordertype_none; border_type = gwindow::bordertype_none;
window_color = from_color = to_color = subject_color = BLUE|_LGREY; window_color = from_color = to_color = subject_color = BLUE|_LGREY;
location_color = BLUE|_LGREY;
title_color = highlight_color = RED|_LGREY; title_color = highlight_color = RED|_LGREY;
border_color = YELLOW|_LGREY; border_color = YELLOW|_LGREY;
} }
@ -340,7 +341,7 @@ void GMsgHeaderView::Paint() {
{ {
loc += " "; loc += " ";
int pos = window.width() - loc.length() - 1; int pos = window.width() - loc.length() - 1;
window.prints(5, pos, window_color, loc.c_str()); window.prints(5, pos, location_color, loc.c_str());
} }
} }
} }

View File

@ -58,6 +58,7 @@ public:
int from_color; int from_color;
int to_color; int to_color;
int subject_color; int subject_color;
int location_color;
void Use(Area *areaptr, GMsg *msgptr); void Use(Area *areaptr, GMsg *msgptr);