+ 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:
@@ -1237,6 +1237,11 @@ SCREENSHADOWS YES
|
|||||||
;INTENSECOLORS YES
|
;INTENSECOLORS YES
|
||||||
INTENSECOLORS NO
|
INTENSECOLORS NO
|
||||||
|
|
||||||
|
// Use background transparency?
|
||||||
|
// Default is "No". If set to "Yes" BLACK background color will become
|
||||||
|
// transparent. Supported for ncurses compilation, otherwise do nothing.
|
||||||
|
;TRANSPARENTCOLORS YES
|
||||||
|
|
||||||
// Select default color set.
|
// Select default color set.
|
||||||
COLORSET DETECT ; Select based on screencard and intense value.
|
COLORSET DETECT ; Select based on screencard and intense value.
|
||||||
;COLORSET NORMAL ; Select standard color set.
|
;COLORSET NORMAL ; Select standard color set.
|
||||||
|
@@ -1443,6 +1443,12 @@ ScreenShadows Yes
|
|||||||
;IntenseColors Yes
|
;IntenseColors Yes
|
||||||
IntenseColors No
|
IntenseColors No
|
||||||
|
|
||||||
|
// <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD> <20><> <20><EFBFBD><E0AEA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䮭?
|
||||||
|
// <20>/<2F> "No". <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "Yes", 梥<> BLACK <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>
|
||||||
|
// <20><><EFBFBD><EFBFBD><EFBFBD>⢥ 䮭<>, <20>⠭<EFBFBD><E2A0AD> <20><EFBFBD><E0AEA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD><E0A6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⮫쪮 <20><><EFBFBD>
|
||||||
|
// <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD><EFBFBD> ncurses, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||||
|
;TransparentColors Yes
|
||||||
|
|
||||||
// <20>롮<EFBFBD> 梥⮢ <20><> 㬮<>砭<EFBFBD><E7A0AD>.
|
// <20>롮<EFBFBD> 梥⮢ <20><> 㬮<>砭<EFBFBD><E7A0AD>.
|
||||||
ColorSet Detect ; <20><><EFBFBD><EFBFBD> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
ColorSet Detect ; <20><><EFBFBD><EFBFBD> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||||
;ColorSet Normal ; <20>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥<>.
|
;ColorSet Normal ; <20>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥<>.
|
||||||
|
@@ -10,6 +10,11 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
+ 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.
|
||||||
|
|
||||||
= Snapshot for the May 3, 2007.
|
= Snapshot for the May 3, 2007.
|
||||||
|
|
||||||
+ Golded+ may be compiled in MacOS X now (using xcode package).
|
+ Golded+ may be compiled in MacOS X now (using xcode package).
|
||||||
|
@@ -748,6 +748,7 @@ CfgGed::CfgGed() {
|
|||||||
hudsonuserno = 0;
|
hudsonuserno = 0;
|
||||||
ignorecharset = false;
|
ignorecharset = false;
|
||||||
intensecolors = false;
|
intensecolors = false;
|
||||||
|
transparentcolors = false;
|
||||||
internetmsgid = false;
|
internetmsgid = false;
|
||||||
internetrfcbody = 0;
|
internetrfcbody = 0;
|
||||||
internetviagate = false;
|
internetviagate = false;
|
||||||
|
@@ -294,6 +294,7 @@ const word CRC_PRINTINIT = 0xB195;
|
|||||||
const word CRC_PRINTLENGTH = 0x5D19;
|
const word CRC_PRINTLENGTH = 0x5D19;
|
||||||
const word CRC_PRINTMARGIN = 0xAC75;
|
const word CRC_PRINTMARGIN = 0xAC75;
|
||||||
const word CRC_PRINTRESET = 0xEFBD;
|
const word CRC_PRINTRESET = 0xEFBD;
|
||||||
|
const word CRC_TRANSPARENTCOLORS= 0xFCB1;
|
||||||
const word CRC_QUOTEBLANK = 0xD3BB;
|
const word CRC_QUOTEBLANK = 0xD3BB;
|
||||||
const word CRC_QUOTEBUFFILE = 0xDE2A;
|
const word CRC_QUOTEBUFFILE = 0xDE2A;
|
||||||
const word CRC_QUOTEBUFMODE = 0x6A16;
|
const word CRC_QUOTEBUFMODE = 0x6A16;
|
||||||
|
@@ -577,6 +577,7 @@ SwitchT:
|
|||||||
case CRC_TIMEOUT : CfgTimeout (); break;
|
case CRC_TIMEOUT : CfgTimeout (); break;
|
||||||
case CRC_TITLESTATUS : CfgTitlestatus (); break;
|
case CRC_TITLESTATUS : CfgTitlestatus (); break;
|
||||||
case CRC_TRANSLATE : CfgTranslate (); break;
|
case CRC_TRANSLATE : CfgTranslate (); break;
|
||||||
|
case CRC_TRANSPARENTCOLORS: CfgTransparentcolors(); break;
|
||||||
case CRC_TWITMODE : CfgTwitmode (); break;
|
case CRC_TWITMODE : CfgTwitmode (); break;
|
||||||
case CRC_TWITNAME : CfgTwitname (); break;
|
case CRC_TWITNAME : CfgTwitname (); break;
|
||||||
case CRC_TWITSUBJ : CfgTwitsubj (); break;
|
case CRC_TWITSUBJ : CfgTwitsubj (); break;
|
||||||
|
@@ -251,6 +251,15 @@ void CfgTranslate()
|
|||||||
CFG->translate.Add(strupr(key), val);
|
CFG->translate.Add(strupr(key), val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------ $
|
||||||
|
|
||||||
|
void CfgTransparentcolors() {
|
||||||
|
|
||||||
|
CFG->transparentcolors = make_bool(GetYesno(val));
|
||||||
|
if(CFG->transparentcolors)
|
||||||
|
GVid::setcolorpairs(true);
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
void CfgTwitmode() {
|
void CfgTwitmode() {
|
||||||
|
@@ -360,6 +360,7 @@ void CfgTimeout ();
|
|||||||
void CfgTimeoutsavemsg ();
|
void CfgTimeoutsavemsg ();
|
||||||
void CfgTitlestatus ();
|
void CfgTitlestatus ();
|
||||||
void CfgTranslate ();
|
void CfgTranslate ();
|
||||||
|
void CfgTransparentcolors();
|
||||||
void CfgTwitmode ();
|
void CfgTwitmode ();
|
||||||
void CfgTwitname ();
|
void CfgTwitname ();
|
||||||
void CfgTwitsubj ();
|
void CfgTwitsubj ();
|
||||||
|
@@ -332,6 +332,7 @@ public:
|
|||||||
Path inboundpath;
|
Path inboundpath;
|
||||||
Path inputfile;
|
Path inputfile;
|
||||||
bool intensecolors;
|
bool intensecolors;
|
||||||
|
bool transparentcolors;
|
||||||
IAdr internetaddress;
|
IAdr internetaddress;
|
||||||
char internetdomain[96];
|
char internetdomain[96];
|
||||||
Node internetgate;
|
Node internetgate;
|
||||||
|
@@ -329,6 +329,8 @@ public:
|
|||||||
|
|
||||||
int detectadapter ();
|
int detectadapter ();
|
||||||
void detectinfo (GVidInfo* _info);
|
void detectinfo (GVidInfo* _info);
|
||||||
|
static
|
||||||
|
void setcolorpairs (bool enabletransparent=false);
|
||||||
|
|
||||||
void resetcurr ();
|
void resetcurr ();
|
||||||
|
|
||||||
|
@@ -222,11 +222,7 @@ int GVid::detectadapter() {
|
|||||||
|
|
||||||
start_color();
|
start_color();
|
||||||
|
|
||||||
/* init colors */
|
setcolorpairs();
|
||||||
short mycolors[] = { COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN,
|
|
||||||
COLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE };
|
|
||||||
for(int i = 1; i < 64 and i < COLOR_PAIRS; i++)
|
|
||||||
init_pair(i, mycolors[(~i)&0x07], mycolors[(i>>3)&0x07]);
|
|
||||||
|
|
||||||
adapter = V_VGA;
|
adapter = V_VGA;
|
||||||
|
|
||||||
@@ -435,6 +431,20 @@ int GVid::detectadapter() {
|
|||||||
return adapter;
|
return adapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GVid::setcolorpairs(bool enabletransparent) {
|
||||||
|
#if defined(__USE_NCURSES__)
|
||||||
|
/* init colors */
|
||||||
|
short mycolors[] = { COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN,
|
||||||
|
COLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE };
|
||||||
|
|
||||||
|
if(enabletransparent)
|
||||||
|
use_default_colors();
|
||||||
|
for(int i = 1; i < 64 and i < COLOR_PAIRS; i++) {
|
||||||
|
short bg=mycolors[(i>>3)&0x07];
|
||||||
|
init_pair(i, mycolors[(~i)&0x07], ((bg==COLOR_BLACK) && enabletransparent)?-1:bg);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
// Video info detect
|
// Video info detect
|
||||||
|
Reference in New Issue
Block a user