sliders: attempt to fix #305
This commit is contained in:
parent
6fd21dd29c
commit
3b72c3ffff
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue