config: Refactor class member vars (#10124)
* Refactor config classes vars * Fix clang format errors
This commit is contained in:
parent
9b4060f09b
commit
4d14bcb02f
18 changed files with 343 additions and 343 deletions
|
|
@ -61,13 +61,13 @@ void CHyprBorderDecoration::draw(PHLMONITOR pMonitor, float const& a) {
|
|||
const bool ANIMATED = m_pWindow->m_fBorderFadeAnimationProgress->isBeingAnimated();
|
||||
|
||||
if (m_pWindow->m_fBorderAngleAnimationProgress->enabled()) {
|
||||
grad.m_fAngle += m_pWindow->m_fBorderAngleAnimationProgress->value() * M_PI * 2;
|
||||
grad.m_fAngle = normalizeAngleRad(grad.m_fAngle);
|
||||
grad.m_angle += m_pWindow->m_fBorderAngleAnimationProgress->value() * M_PI * 2;
|
||||
grad.m_angle = normalizeAngleRad(grad.m_angle);
|
||||
|
||||
// When borderangle is animated, it is counterintuitive to fade between inactive/active gradient angles.
|
||||
// Instead we sync the angles to avoid fading between them and additionally rotating the border angle.
|
||||
if (ANIMATED)
|
||||
m_pWindow->m_cRealBorderColorPrevious.m_fAngle = grad.m_fAngle;
|
||||
m_pWindow->m_cRealBorderColorPrevious.m_angle = grad.m_angle;
|
||||
}
|
||||
|
||||
int borderSize = m_pWindow->getRealBorderSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue