+ 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:
@@ -748,6 +748,7 @@ CfgGed::CfgGed() {
|
||||
hudsonuserno = 0;
|
||||
ignorecharset = false;
|
||||
intensecolors = false;
|
||||
transparentcolors = false;
|
||||
internetmsgid = false;
|
||||
internetrfcbody = 0;
|
||||
internetviagate = false;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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() {
|
||||
|
@@ -360,6 +360,7 @@ void CfgTimeout ();
|
||||
void CfgTimeoutsavemsg ();
|
||||
void CfgTitlestatus ();
|
||||
void CfgTranslate ();
|
||||
void CfgTransparentcolors();
|
||||
void CfgTwitmode ();
|
||||
void CfgTwitname ();
|
||||
void CfgTwitsubj ();
|
||||
|
@@ -332,6 +332,7 @@ public:
|
||||
Path inboundpath;
|
||||
Path inputfile;
|
||||
bool intensecolors;
|
||||
bool transparentcolors;
|
||||
IAdr internetaddress;
|
||||
char internetdomain[96];
|
||||
Node internetgate;
|
||||
|
Reference in New Issue
Block a user