From 9a060aff7698f213093ac2df0dcf81b3d765dfb2 Mon Sep 17 00:00:00 2001 From: Christoph Giesche Date: Wed, 20 Dec 2023 14:28:03 +0100 Subject: [PATCH] Fixed #222: Button image background has been removed. --- src/modules/plugin/svgUtils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/plugin/svgUtils.js b/src/modules/plugin/svgUtils.js index 371b43a..b24eaa0 100644 --- a/src/modules/plugin/svgUtils.js +++ b/src/modules/plugin/svgUtils.js @@ -9,7 +9,6 @@ export class SvgUtils { width: this.buttonRes.width / 2, height: this.buttonRes.height / 2 } - this.buttonBgColor = "#000000"; this.fontSize = 24; this.lineAttr = { "fill": "#FFF", @@ -25,9 +24,6 @@ export class SvgUtils { generateButtonSVG(labels, iconSVG, iconColor, isAction = false, isMultiAction = false) { - - this.snap.rect(0, 0, this.buttonRes.width, this.buttonRes.height).attr({fill: this.buttonBgColor}) - if (iconSVG) { const icon = this.snap.path(iconSVG) icon.attr("fill", iconColor);