diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-05 19:25:45 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-05 19:25:45 +0100 |
| commit | 96198dae55b1429449504e49065a10763b288431 (patch) | |
| tree | ee18d707952df6fcbd4f9295e138d1571b64267b /src/render/decorations/CHyprGroupBarDecoration.cpp | |
| parent | 0e3547e0f6b4016aa308292a86c43cd47dd206fd (diff) | |
Normalize color storage
Colors are now normalized to 0 - 1 values instead of 0 - 255
causes calculations to be simpler and generally cleans up the codebase.
Diffstat (limited to 'src/render/decorations/CHyprGroupBarDecoration.cpp')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index cfe5255f..7b7c1576 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -92,7 +92,6 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& CColor color = m_dwGroupMembers[i] == g_pCompositor->m_pLastWindow ? ((CGradientValueData*)PGROUPCOLACTIVE->get())->m_vColors[0] : ((CGradientValueData*)PGROUPCOLINACTIVE->get())->m_vColors[0]; color.a *= a; - color = color * 255.f; // gradient has 0 - 1 g_pHyprOpenGL->renderRect(&rect, color); xoff += PAD + BARW; |
