fix: set stroke color when drawing restore button (#6565)

This commit is contained in:
nerix
2025-11-05 16:51:01 +01:00
committed by GitHub
parent ac33af2ece
commit b2bccb68e0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@
- Bugfix: Fixed scrollbar rect computation potentially resulting in overflows. (#6547)
- Bugfix: Forward query params to websocket URLs. (#6141)
- Bugfix: Fixed Lua errors from handlers of HTTP requests not being logged. (#6452)
- Bugfix: Fixed restore button not showing on Windows. (#6565)
- Dev: Update release documentation. (#6498)
- Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493)
- Dev: Remove unused QTextCodec includes. (#6487)
+2 -2
View File
@@ -56,9 +56,9 @@ void TitleBarButton::paintContent(QPainter &painter)
int xD2 = xD * 1 / 5;
int xD3 = xD * 4 / 5;
painter.setPen(color);
painter.drawRect(centerX - xD / 2 + xD2, xD, xD3, xD3);
painter.fillRect(centerX - xD / 2, xD + xD2, xD3, xD3,
this->theme->window.background);
painter.setBrush(this->theme->window.background);
painter.drawRect(centerX - xD / 2, xD + xD2, xD3, xD3);
break;
}