From 52ff6e351ba2dfe53af9a3713ca53f11c7d2f1b6 Mon Sep 17 00:00:00 2001 From: mntmn Date: Sun, 27 Sep 2020 23:25:06 +0200 Subject: [PATCH] arrow/scribble: default to active_style's stroke color --- public/javascripts/spacedeck_whiteboard.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/javascripts/spacedeck_whiteboard.js b/public/javascripts/spacedeck_whiteboard.js index 7c53f14..f1f2ed2 100644 --- a/public/javascripts/spacedeck_whiteboard.js +++ b/public/javascripts/spacedeck_whiteboard.js @@ -576,8 +576,7 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - // Set the color to the last selected color, fallback to black if no color was selected - stroke_color: "#" + $scope.color_picker_rgb || "#000000", + stroke_color: $scope.active_style.stroke_color, stroke: 2, shape: "scribble" }; @@ -613,8 +612,7 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - // Set the color to the last selected color, fallback to black if no color was selected - stroke_color: "#" + $scope.color_picker_rgb || "#000000", + stroke_color: $scope.active_style.stroke_color, stroke: 2, shape: "arrow" };