Update Layout.js

fixed "fat finger" error in copy/paste from local code; Line 193; l.btnBorder

removed btnCol and replaced to bgCol, which is typically ignored in the type:btn
master
nravanelli 2023-01-20 22:49:22 -05:00 committed by GitHub
parent a37bfcc9c1
commit 9e8a44dca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ Layout.prototype.render = function (l) {
], 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;
if(l.bgCol!==undefined) bg = l.bgCol;
if(l.btnBorder!==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(