From 76ce7d6fe62477d0b963738de5d135a2ec0c7bfb Mon Sep 17 00:00:00 2001 From: Vincent Briglia Date: Thu, 17 May 2018 15:25:20 +0200 Subject: [PATCH] add option to override colours --- .gitignore | 3 ++- src/engine/runtime.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 124efe5d7..ea69f3503 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,9 @@ npm-* /.nyc_output /coverage -# IDEA +# Editor /.idea +/.vscode # Build /dist diff --git a/src/engine/runtime.js b/src/engine/runtime.js index e55f93ec8..c4e147a6f 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -498,9 +498,9 @@ class Runtime extends EventEmitter { name: maybeFormatMessage(extensionInfo.name), blockIconURI: extensionInfo.blockIconURI, menuIconURI: extensionInfo.menuIconURI, - color1: '#FF6680', - color2: '#FF4D6A', - color3: '#FF3355', + color1: extensionInfo.colour || '#FF6680', + color2: extensionInfo.colourSecondary || '#FF4D6A', + color3: extensionInfo.colourTertiary || '#FF3355', blocks: [], menus: [] };