mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 12:16:27 -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() {
|
protected void animateHide() {
|
||||||
animateHide(() -> {
|
animateHide(() -> {
|
||||||
|
numOverlays--;
|
||||||
removeEffectFromBackground();
|
removeEffectFromBackground();
|
||||||
|
|
||||||
if (stage != null)
|
if (stage != null)
|
||||||
|
@ -540,6 +541,11 @@ public abstract class Overlay<T extends Overlay<T>> {
|
||||||
|
|
||||||
layout();
|
layout();
|
||||||
|
|
||||||
|
numOverlays++;
|
||||||
|
if (numOverlays > 1) {
|
||||||
|
getRootContainer().getStyleClass().add("popup-dropshadow");
|
||||||
|
}
|
||||||
|
|
||||||
addEffectToBackground();
|
addEffectToBackground();
|
||||||
|
|
||||||
// On Linux the owner stage does not move the child stage as it does on Mac
|
// 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() {
|
protected void addEffectToBackground() {
|
||||||
numOverlays++;
|
|
||||||
if (numOverlays > 1) {
|
|
||||||
getRootContainer().getStyleClass().add("popup-dropshadow");
|
|
||||||
}
|
|
||||||
if (numOverlays > 1) return;
|
if (numOverlays > 1) return;
|
||||||
if (type.changeBackgroundType == ChangeBackgroundType.BlurUltraLight)
|
if (type.changeBackgroundType == ChangeBackgroundType.BlurUltraLight)
|
||||||
MainView.blurUltraLight();
|
MainView.blurUltraLight();
|
||||||
|
@ -812,7 +814,6 @@ public abstract class Overlay<T extends Overlay<T>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void removeEffectFromBackground() {
|
protected void removeEffectFromBackground() {
|
||||||
numOverlays--;
|
|
||||||
if (numOverlays > 0) return;
|
if (numOverlays > 0) return;
|
||||||
MainView.removeEffect();
|
MainView.removeEffect();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue