knob: log compact style and reduce gauge alpha

This commit is contained in:
jean-emmanuel 2016-11-15 15:28:52 +01:00
parent 3798802115
commit 13a6fafcff
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@
- bug fixes
- meters in faders were not always properly positionned
- widgets
- knob: gauge's width is proportionnal to the knob's size in `compact` mode; widget's content centering fixed;
- knob: gauge's width is proportionnal to the knob's size in `compact` mode; widget's content centering fixed; `compact` style update;
## 0.11.0
- bug fixes

View file

@ -162,7 +162,7 @@ Knob.prototype.draw = function(){
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (this.gaugeWidth + this.margin) * PXSCALE, min, max)
this.ctx.stroke()
this.ctx.globalAlpha = 0.5
this.ctx.globalAlpha = 0.3
this.ctx.beginPath()
this.ctx.strokeStyle = this.colors.gauge
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (this.gaugeWidth + this.margin) * PXSCALE, Math.min(o,d), Math.max(o,d))