1
0
Fork 0

Update Layout.js

master
nravanelli 2023-01-20 23:54:13 -05:00 committed by GitHub
parent f01202ef4a
commit e68c526a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -186,11 +186,11 @@ 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,
btnborder = l.selected?gfx.theme.fgH:gfx.theme.fg2;
//add button color option
if(l.bgCol!==undefined) bg = l.bgCol;
if(l.btnBorder!==undefined) btnborder = l.btnBorder;
], bg = l.bgCol!==undefined?l.bgCol:gfx.theme.bg2,
btnborder = l.btnBorder!==undefined?l.btnBorder:gfx.theme.fg2;
if(l.selected){
bg = gfx.theme.bgH, btnborder = gfx.theme.fgH;
}
gfx.setColor(bg).fillPoly(poly).setColor(btnborder).drawPoly(poly);
if (l.col!==undefined) gfx.setColor(l.col);
if (l.src) gfx.setBgColor(bg).drawImage(