fader: increase compact/dashed gauge opacity

This commit is contained in:
jean-emmanuel 2017-07-11 10:20:57 +02:00
parent 04b39c0f5e
commit bfda9a955b

View file

@ -202,7 +202,7 @@ module.exports = class Fader extends _sliders_base {
if (this.getProp('compact')) {
this.ctx.globalAlpha = 0.2 + 0.2 * Math.abs(d-o) / (d<o?o:height-o)
this.ctx.globalAlpha = (dashed ? .3 : .2) + 0.2 * Math.abs(d-o) / (d<o?o:height-o)
this.ctx.strokeStyle = this.colors.gauge
this.ctx.beginPath()
this.ctx.moveTo(m, o)