Skip to content

Commit

Permalink
tweaked slider transparency for flat design mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Jul 9, 2021
1 parent 098305d commit 9d68283
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7040,12 +7040,13 @@ SliderMorph.prototype.init = function (
this.offset = null;
this.button = new SliderButtonMorph();
this.button.isDraggable = false;
this.button.alpha = MorphicPreferences.isFlat ? 0.7 : 1;
this.button.color = new Color(200, 200, 200);
this.button.highlightColor = new Color(210, 210, 255);
this.button.pressColor = new Color(180, 180, 255);
SliderMorph.uber.init.call(this, orientation);
this.add(this.button);
this.alpha = 0.3;
this.alpha = MorphicPreferences.isFlat ? 0 : 0.3;
this.color = color || new Color(0, 0, 0);
this.setExtent(new Point(20, 100));
this.fixLayout();
Expand Down

0 comments on commit 9d68283

Please sign in to comment.