Commit a709b37d authored by Jan Blackquill's avatar Jan Blackquill 🌈

[kstyle] Have no-tools-area border respect display scale

parent f3e7b9b1
......@@ -925,7 +925,7 @@ namespace Breeze
auto rect = _toolsAreaManager->toolsAreaRect(mw);
if (rect.height() == 0) {
painter->setPen(_helper->separatorColor(_toolsAreaManager->palette()));
painter->setPen(QPen(_helper->separatorColor(_toolsAreaManager->palette()), PenWidth::Frame * widget->devicePixelRatio()));
painter->drawLine(widget->rect().topLeft(), widget->rect().topRight());
painter->restore();
return true;
......@@ -944,7 +944,7 @@ namespace Breeze
} else if (auto dialog = qobject_cast<const QDialog*>(widget)) {
auto margins = dialog->contentsMargins();
const_cast<QDialog*>(dialog)->setContentsMargins(margins.left(), qMax(margins.top(), 1), margins.right(), margins.bottom());
painter->setPen(_helper->separatorColor(_toolsAreaManager->palette()));
painter->setPen(QPen(_helper->separatorColor(_toolsAreaManager->palette()), PenWidth::Frame * widget->devicePixelRatio()));
painter->drawLine(widget->rect().topLeft(), widget->rect().topRight());
}
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment