@@ -322,36 +322,8 @@ void GameCard::paintEvent(QPaintEvent* event) {
322322 painter.drawRoundedRect (cardRect, radius, radius);
323323 }
324324
325- // ── Supported badge ──
326- if (supported) {
327- painter.setClipPath (clipPath);
328-
329- QRectF badgeRect (cardRect.right () - 30 , cardRect.top () + 6 , 24 , 24 );
330-
331- // Material container background
332- QColor badgeColor = Colors::toQColor (Colors::ACCENT_GREEN);
333- QPainterPath badgePath;
334- badgePath.addRoundedRect (badgeRect, 6 , 6 ); // Reduced from 12 for sharper corners
335- painter.fillPath (badgePath, badgeColor);
336-
337- // Check icon
338- QRectF checkRect = badgeRect.adjusted (4 , 4 , -4 , -4 );
339- painter.setPen (Qt::NoPen);
340- painter.setBrush (Qt::NoBrush);
341-
342- QPen checkPen (QColor (" #FFFFFF" ), 2.2 );
343- checkPen.setCapStyle (Qt::RoundCap);
344- checkPen.setJoinStyle (Qt::RoundJoin);
345- painter.setPen (checkPen);
346-
347- QPainterPath check;
348- check.moveTo (checkRect.left () + 1 , checkRect.center ().y ());
349- check.lineTo (checkRect.center ().x () - 1 , checkRect.bottom () - 2 );
350- check.lineTo (checkRect.right () - 1 , checkRect.top () + 2 );
351- painter.drawPath (check);
352-
353- painter.setClipRect (rect ());
354- }
325+ // Reset clip for border drawing
326+ painter.setClipRect (rect ());
355327}
356328
357329void GameCard::mousePressEvent (QMouseEvent* event) {
0 commit comments