diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-12-31 17:04:41 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-12-31 17:04:41 +0100 |
| commit | 228e630f40de2e84e5c02384352dc9a0f70257d9 (patch) | |
| tree | 1557be09b819a544efbb2534777d690a3c887b5f /src/render | |
| parent | 7f595ed0cac2ffa154132e992c7e4902ca819a14 (diff) | |
fix group bar color calc
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index b67051bb..7b7c1576 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -86,10 +86,11 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& scaleBox(&rect, pMonitor->scale); - static auto* const PGROUPCOLACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border_active")->intValue; - static auto* const PGROUPCOLINACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border")->intValue; + static auto* const PGROUPCOLACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border_active")->data; + static auto* const PGROUPCOLINACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border")->data; - CColor color = m_dwGroupMembers[i] == g_pCompositor->m_pLastWindow ? CColor(*PGROUPCOLACTIVE) : CColor(*PGROUPCOLINACTIVE); + CColor color = m_dwGroupMembers[i] == g_pCompositor->m_pLastWindow ? ((CGradientValueData*)PGROUPCOLACTIVE->get())->m_vColors[0] : + ((CGradientValueData*)PGROUPCOLINACTIVE->get())->m_vColors[0]; color.a *= a; g_pHyprOpenGL->renderRect(&rect, color); |
