From 1abf19abbf8c0c76a9d1a1863120247efef75e75 Mon Sep 17 00:00:00 2001 From: Unick Soft Date: Sun, 8 Sep 2019 09:57:26 +0200 Subject: [PATCH] Fix background color for setup style dialogs. --- script/EventHandlers.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/EventHandlers.js b/script/EventHandlers.js index b774aab..624d88b 100644 --- a/script/EventHandlers.js +++ b/script/EventHandlers.js @@ -1143,8 +1143,8 @@ SetupVertexStyle.prototype.show = function(index) context.save(); - context.fillStyle = "#FFFFFF"; - context.fillRect(0, 0, canvas.width, canvas.height); + var backgroundDrawer = new BaseBackgroundDrawer(context); + backgroundDrawer.Draw(app.backgroundCommonStyle, canvas.width, canvas.height, new Point(0, 0), 1.0); var graphDrawer = new BaseVertexDrawer(context); var baseVertex = new BaseVertex(canvas.width / 2, canvas.height / 2, new BaseEnumVertices(this)); @@ -1241,9 +1241,9 @@ SetupEdgeStyle.prototype.show = function(index) var context = canvas.getContext('2d'); context.save(); - - context.fillStyle = "#FFFFFF"; - context.fillRect(0, 0, canvas.width, canvas.height); + + var backgroundDrawer = new BaseBackgroundDrawer(context); + backgroundDrawer.Draw(app.backgroundCommonStyle, canvas.width, canvas.height, new Point(0, 0), 1.0); var graphDrawer = new BaseEdgeDrawer(context); var baseVertex1 = new BaseVertex(0, canvas.height / 2, new BaseEnumVertices(this));