fixed branding text background color not updating when the system's color change
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3329 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9241c66c5e
commit
8a85e1c0dd
9 changed files with 62 additions and 61 deletions
|
@ -3573,18 +3573,18 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
|
||||
if (!strcmpi(line.gettoken_str(a+1),"transparent")) {
|
||||
c.flags|=CC_BKB;
|
||||
c.bk.lbStyle=BS_NULL;
|
||||
c.lbStyle=BS_NULL;
|
||||
c.bkmode=TRANSPARENT;
|
||||
}
|
||||
else {
|
||||
p=line.gettoken_str(a+1);
|
||||
if (*p) {
|
||||
int v=strtoul(p,&p,16);
|
||||
c.bk.lbColor=((v&0xff)<<16)|(v&0xff00)|((v&0xff0000)>>16);
|
||||
c.bkc=((v&0xff)<<16)|(v&0xff00)|((v&0xff0000)>>16);
|
||||
c.flags|=CC_BK|CC_BKB;
|
||||
}
|
||||
|
||||
c.bk.lbStyle=BS_SOLID;
|
||||
c.lbStyle=BS_SOLID;
|
||||
c.bkmode=OPAQUE;
|
||||
}
|
||||
|
||||
|
@ -3599,10 +3599,10 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
if (a == 3)
|
||||
{
|
||||
c.flags|=CC_BK|CC_BKB;
|
||||
c.bk.lbStyle=BS_NULL;
|
||||
c.lbStyle=BS_NULL;
|
||||
if (!*line.gettoken_str(a))
|
||||
{
|
||||
c.bk.lbColor=COLOR_BTNFACE;
|
||||
c.bkc=COLOR_BTNFACE;
|
||||
c.flags|=CC_BK_SYS;
|
||||
}
|
||||
c.flags|=CC_TEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue