sliders: attempt to fix #305

This commit is contained in:
jean-emmanuel 2018-06-01 11:42:22 +02:00
parent 6fd21dd29c
commit 3b72c3ffff

View file

@ -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)
}