mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Add border to icons with one color
This commit is contained in:
parent
bcb38a7207
commit
e3960f13f1
@ -171,7 +171,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
|
||||
{
|
||||
validIcon = true;
|
||||
|
||||
{
|
||||
// Draw color gradient based on background colors
|
||||
|
||||
QLinearGradient gradient (QPointF(0.0f, 0.0f), QPoint(size.width(), 0.0f));
|
||||
@ -191,7 +190,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
|
||||
painter.fillRect(0, 0, size.width(), size.height(), gradientBrush);
|
||||
}
|
||||
|
||||
{
|
||||
// Draw border
|
||||
|
||||
QPainter painter2(&pixmap);
|
||||
@ -199,8 +197,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
|
||||
painter2.setPen(QPen(Qt::black, 1));
|
||||
painter2.drawRect(QRectF(0, 0, size.width(), size.height()));
|
||||
}
|
||||
}
|
||||
}
|
||||
else pixmap.fill(Qt::transparent);
|
||||
|
||||
if (!m_iconResourceString.isEmpty())
|
||||
|
Loading…
Reference in New Issue
Block a user