groupbar: various visual improvements

added rounding, round at edges, and indicator height
This commit is contained in:
Vaxry 2025-01-31 13:32:36 +00:00
parent ac5668192e
commit 9c38287410
7 changed files with 121 additions and 22 deletions

View file

@ -13,9 +13,13 @@ void CTexPassElement::draw(const CRegion& damage) {
CScopeGuard x = {[]() {
//
g_pHyprOpenGL->m_bEndFrame = false;
g_pHyprOpenGL->m_bEndFrame = false;
g_pHyprOpenGL->m_RenderData.clipBox = {};
}};
if (!data.clipBox.empty())
g_pHyprOpenGL->m_RenderData.clipBox = data.clipBox;
if (data.replaceProjection)
g_pHyprOpenGL->m_RenderData.monitorProjection = *data.replaceProjection;
g_pHyprOpenGL->renderTextureInternalWithDamage(data.tex, data.box, data.a, data.damage.empty() ? damage : data.damage, data.round, data.roundingPower, data.syncTimeline,