mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-30 10:18:44 -04:00
add dropshadow to offer passphrase popup
This commit is contained in:
parent
bc859164da
commit
62e307f7b6
1 changed files with 6 additions and 5 deletions
|
@ -248,6 +248,7 @@ public abstract class Overlay<T extends Overlay<T>> {
|
|||
|
||||
protected void animateHide() {
|
||||
animateHide(() -> {
|
||||
numOverlays--;
|
||||
removeEffectFromBackground();
|
||||
|
||||
if (stage != null)
|
||||
|
@ -540,6 +541,11 @@ public abstract class Overlay<T extends Overlay<T>> {
|
|||
|
||||
layout();
|
||||
|
||||
numOverlays++;
|
||||
if (numOverlays > 1) {
|
||||
getRootContainer().getStyleClass().add("popup-dropshadow");
|
||||
}
|
||||
|
||||
addEffectToBackground();
|
||||
|
||||
// On Linux the owner stage does not move the child stage as it does on Mac
|
||||
|
@ -738,10 +744,6 @@ public abstract class Overlay<T extends Overlay<T>> {
|
|||
}
|
||||
|
||||
protected void addEffectToBackground() {
|
||||
numOverlays++;
|
||||
if (numOverlays > 1) {
|
||||
getRootContainer().getStyleClass().add("popup-dropshadow");
|
||||
}
|
||||
if (numOverlays > 1) return;
|
||||
if (type.changeBackgroundType == ChangeBackgroundType.BlurUltraLight)
|
||||
MainView.blurUltraLight();
|
||||
|
@ -812,7 +814,6 @@ public abstract class Overlay<T extends Overlay<T>> {
|
|||
}
|
||||
|
||||
protected void removeEffectFromBackground() {
|
||||
numOverlays--;
|
||||
if (numOverlays > 0) return;
|
||||
MainView.removeEffect();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue