From 3b72c3ffff4557e4c26c2f02bd2b7e3fe39ecbad Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 1 Jun 2018 11:42:22 +0200 Subject: [PATCH] sliders: attempt to fix #305 --- src/browser/js/app/widgets/sliders/slider.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/js/app/widgets/sliders/slider.js b/src/browser/js/app/widgets/sliders/slider.js index 10d9482f..7bad3001 100644 --- a/src/browser/js/app/widgets/sliders/slider.js +++ b/src/browser/js/app/widgets/sliders/slider.js @@ -165,13 +165,13 @@ class Slider extends Canvas { style = style || window.getComputedStyle(this.canvas) - this.colors.track = style.getPropertyValue('--color-track') - this.colors.gauge = style.getPropertyValue('--color-gauge') - this.colors.knob = style.getPropertyValue('--color-knob') - this.colors.pips = style.getPropertyValue('--color-pips') + super.cacheCanvasStyle(style) + + this.colors.gauge = style.getPropertyValue('--color-gauge') || this.colors.custom + this.colors.knob = style.getPropertyValue('--color-knob') || this.colors.custom + this.colors.pips = style.getPropertyValue('--color-pips') || this.colors.custom this.colors.gaugeOpacity = style.getPropertyValue('--gauge-opacity') - super.cacheCanvasStyle(style) }