mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-30 15:18:28 +00:00
use proper fade anims for hyprerror
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user