From 9d68283528d79ab0606eb9c2f788e1c3a131d3ce Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 9 Jul 2021 09:15:10 +0200 Subject: [PATCH] tweaked slider transparency for flat design mode --- morphic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morphic.js b/morphic.js index 0752c29..c13af7a 100644 --- a/morphic.js +++ b/morphic.js @@ -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();