+ Added new keyword to support background transparency

TRANSPARENTCOLORS Yes/No
  default is "No". If set to "Yes" BLACK background color will become
  transparent. Supported for ncurses compilation, otherwise do nothing.
This commit is contained in:
Stanislav Mekhanoshin
2007-06-21 19:03:18 +00:00
parent 0bf406cc77
commit 0d3a3b3ebc
11 changed files with 47 additions and 5 deletions

View File

@@ -748,6 +748,7 @@ CfgGed::CfgGed() {
hudsonuserno = 0;
ignorecharset = false;
intensecolors = false;
transparentcolors = false;
internetmsgid = false;
internetrfcbody = 0;
internetviagate = false;

View File

@@ -294,6 +294,7 @@ const word CRC_PRINTINIT = 0xB195;
const word CRC_PRINTLENGTH = 0x5D19;
const word CRC_PRINTMARGIN = 0xAC75;
const word CRC_PRINTRESET = 0xEFBD;
const word CRC_TRANSPARENTCOLORS= 0xFCB1;
const word CRC_QUOTEBLANK = 0xD3BB;
const word CRC_QUOTEBUFFILE = 0xDE2A;
const word CRC_QUOTEBUFMODE = 0x6A16;

View File

@@ -577,6 +577,7 @@ SwitchT:
case CRC_TIMEOUT : CfgTimeout (); break;
case CRC_TITLESTATUS : CfgTitlestatus (); break;
case CRC_TRANSLATE : CfgTranslate (); break;
case CRC_TRANSPARENTCOLORS: CfgTransparentcolors(); break;
case CRC_TWITMODE : CfgTwitmode (); break;
case CRC_TWITNAME : CfgTwitname (); break;
case CRC_TWITSUBJ : CfgTwitsubj (); break;

View File

@@ -251,6 +251,15 @@ void CfgTranslate()
CFG->translate.Add(strupr(key), val);
}
// ------------------------------------------------------------------ $
void CfgTransparentcolors() {
CFG->transparentcolors = make_bool(GetYesno(val));
if(CFG->transparentcolors)
GVid::setcolorpairs(true);
}
// ------------------------------------------------------------------
void CfgTwitmode() {

View File

@@ -360,6 +360,7 @@ void CfgTimeout ();
void CfgTimeoutsavemsg ();
void CfgTitlestatus ();
void CfgTranslate ();
void CfgTransparentcolors();
void CfgTwitmode ();
void CfgTwitname ();
void CfgTwitsubj ();

View File

@@ -332,6 +332,7 @@ public:
Path inboundpath;
Path inputfile;
bool intensecolors;
bool transparentcolors;
IAdr internetaddress;
char internetdomain[96];
Node internetgate;