diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e95368a..667ff703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/widgets/buttons/TitlebarButton.cpp b/src/widgets/buttons/TitlebarButton.cpp index e842548e..3bb74bdd 100644 --- a/src/widgets/buttons/TitlebarButton.cpp +++ b/src/widgets/buttons/TitlebarButton.cpp @@ -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; }