mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-25 15:20:40 -04:00
tweak white fade on black popup
This commit is contained in:
parent
f2b5f03e87
commit
2b1a6484a3
1 changed files with 2 additions and 2 deletions
|
@ -106,12 +106,12 @@ public class Transitions {
|
|||
node.setMouseTransparent(true);
|
||||
GaussianBlur blur = new GaussianBlur(0.0);
|
||||
Timeline timeline = new Timeline();
|
||||
KeyValue kv1 = new KeyValue(blur.radiusProperty(), blurRadius);
|
||||
KeyValue kv1 = new KeyValue(blur.radiusProperty(), CssTheme.isDarkTheme() ? blurRadius * 1.25 : blurRadius);
|
||||
KeyFrame kf1 = new KeyFrame(Duration.millis(getDuration(duration)), kv1);
|
||||
ColorAdjust darken = new ColorAdjust();
|
||||
darken.setBrightness(0.0);
|
||||
blur.setInput(darken);
|
||||
KeyValue kv2 = new KeyValue(darken.brightnessProperty(), CssTheme.isDarkTheme() ? brightness * -0.2 : brightness);
|
||||
KeyValue kv2 = new KeyValue(darken.brightnessProperty(), CssTheme.isDarkTheme() ? brightness * -0.10 : brightness);
|
||||
KeyFrame kf2 = new KeyFrame(Duration.millis(getDuration(duration)), kv2);
|
||||
timeline.getKeyFrames().addAll(kf1, kf2);
|
||||
node.setEffect(blur);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue