diff --git a/panels/scrollbar/script.js b/panels/scrollbar/script.js index 59a2fe388c46fdcdd691ed7d844377548902160f..7bde49502336f59472cfe0629de8dff5b3b670dd 100755 --- a/panels/scrollbar/script.js +++ b/panels/scrollbar/script.js @@ -6,7 +6,7 @@ this.loaded = function(panel, config) { function CanvasMarquee() { var me = this, - bgColor = panel.css("background-color"), + bgColor = null,//panel.css("background-color"), fgColor = "yellow", font = "vrr", baseline = 0.7, @@ -58,9 +58,12 @@ this.loaded = function(panel, config) { if (left > -texts[textID].width) { left = left - (amount > 0 ? amount : 1); - - mctx.fillStyle = bgColor; - mctx.fillRect(0, 0, width, height); + if (bgColor == null) { + mctx.clearRect(0, 0, width, height); + } else { + mctx.fillStyle=bgColor; + mctx.fillRect(0, 0, width, height); + } mctx.drawImage(texts[textID].text, left, 0); window.requestAnimationFrame(render); } else {