use proper fade anims for hyprerror

This commit is contained in:
vaxerski 2023-01-23 12:04:48 +00:00
parent cb98242ea7
commit c074f260a1

View file

@ -21,6 +21,8 @@ void CHyprError::createQueued() {
m_tTexture.destroyTexture();
}
m_fFadeOpacity.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeIn"));
m_fFadeOpacity.setValueAndWarp(0.f);
m_fFadeOpacity = 1.f;
@ -129,6 +131,7 @@ void CHyprError::draw() {
m_szQueued = "";
return;
} else {
m_fFadeOpacity.setConfig(g_pConfigManager->getAnimationPropertyConfig("fadeOut"));
m_fFadeOpacity = 0.f;
}
}