add dropshadow to offer passphrase popup

This commit is contained in:
woodser 2025-05-23 13:48:26 -04:00
parent bc859164da
commit 62e307f7b6
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -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();
}