Only draw outline for overlay when hovered over (#6140)

This commit is contained in:
teknsl
2025-04-12 12:06:36 +02:00
committed by GitHub
parent 5828df8b73
commit b59124702c
6 changed files with 17 additions and 7 deletions
+5 -2
View File
@@ -974,14 +974,17 @@ void BaseWindow::scaleChangedEvent(float scale)
void BaseWindow::paintEvent(QPaintEvent *)
{
QPainter painter(this);
this->drawOutline(painter);
this->drawCustomWindowFrame(painter);
}
void BaseWindow::drawOutline(QPainter &painter)
{
if (this->frameless_)
{
painter.setPen(QColor("#999"));
painter.drawRect(0, 0, this->width() - 1, this->height() - 1);
}
this->drawCustomWindowFrame(painter);
}
float BaseWindow::desiredScale() const