From 0e96bd31e6bf31c843464246ea39c64f744bf478 Mon Sep 17 00:00:00 2001 From: turner Date: Mon, 25 Nov 2024 15:27:40 -0500 Subject: [PATCH] Initial color bug --- js/trackBase.js | 2 ++ js/trackView.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/trackBase.js b/js/trackBase.js index 3f977ea0d..35770d6c5 100644 --- a/js/trackBase.js +++ b/js/trackBase.js @@ -47,6 +47,8 @@ const fixColor = (colorString) => { */ class TrackBase { + static defaultColor = 'rgb(150,150,150)' + static defaults = { height: 50, autoHeight: false, diff --git a/js/trackView.js b/js/trackView.js index 16a0c1c1c..7739ce1cd 100644 --- a/js/trackView.js +++ b/js/trackView.js @@ -212,7 +212,7 @@ class TrackView { this.track.initialTrackColor = {} } - const color = this.track.color || this.track.defaultColor + const color = this.track.color || this.track.constructor.defaultColor if (StringUtils.isString(color)) { if (undefined === this.track.initialTrackColor['color']) {