mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 23:45:59 +01:00
use proper fade anims for hyprerror
This commit is contained in:
parent
cb98242ea7
commit
c074f260a1
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,8 @@ void CHyprError::createQueued() {
|
||||||
m_tTexture.destroyTexture();
|
m_tTexture.destroyTexture();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_fFadeOpacity.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeIn"));
|
||||||
|
|
||||||
m_fFadeOpacity.setValueAndWarp(0.f);
|
m_fFadeOpacity.setValueAndWarp(0.f);
|
||||||
m_fFadeOpacity = 1.f;
|
m_fFadeOpacity = 1.f;
|
||||||
|
|
||||||
|
@ -129,6 +131,7 @@ void CHyprError::draw() {
|
||||||
m_szQueued = "";
|
m_szQueued = "";
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
m_fFadeOpacity.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeOut"));
|
||||||
m_fFadeOpacity = 0.f;
|
m_fFadeOpacity = 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue