parent
84510e46cc
commit
a725dc7a78
|
|
@ -186,8 +186,12 @@ Layout.prototype.render = function (l) {
|
|||
x+4,y+h-1,
|
||||
x,y+h-5,
|
||||
x,y+4
|
||||
], bg = l.selected?gfx.theme.bgH:gfx.theme.bg2;
|
||||
gfx.setColor(bg).fillPoly(poly).setColor(l.selected ? gfx.theme.fgH : gfx.theme.fg2).drawPoly(poly);
|
||||
], bg = l.selected?gfx.theme.bgH:gfx.theme.bg2,
|
||||
btnborder = l.selected?gfx.theme.fgH:gfx.theme.fg2;
|
||||
//add button color option
|
||||
if(l.btnCol!==undefined) bg = l.btnCol;
|
||||
if(l.btnBorder1!==undefined) btnborder = l.btnBorder;
|
||||
gfx.setColor(bg).fillPoly(poly).setColor(btnborder).drawPoly(poly);
|
||||
if (l.col!==undefined) gfx.setColor(l.col);
|
||||
if (l.src) gfx.setBgColor(bg).drawImage(
|
||||
"function"==typeof l.src?l.src():l.src,
|
||||
|
|
|
|||
Loading…
Reference in New Issue