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

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

View File

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

View File

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

View File

@@ -39,6 +39,7 @@ GMsgHeaderView::GMsgHeaderView() {
at_row = at_column = width = height = 0;
border_type = gwindow::bordertype_none;
window_color = from_color = to_color = subject_color = BLUE|_LGREY;
location_color = BLUE|_LGREY;
title_color = highlight_color = RED|_LGREY;
border_color = YELLOW|_LGREY;
}
@@ -340,7 +341,7 @@ void GMsgHeaderView::Paint() {
{
loc += " ";
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 to_color;
int subject_color;
int location_color;
void Use(Area *areaptr, GMsg *msgptr);