Commit 2b59891d authored by Gustavo Carneiro's avatar Gustavo Carneiro Committed by Tomaz Canabrava
Browse files

Simplify the color information on the tab, per VDG Input.

parent 3d2bc6fe
......@@ -175,9 +175,13 @@ void DetachableTabBar::paintEvent(QPaintEvent *event)
continue;
}
varColor.setAlpha(tabIndex == currentIndex() ? 180 : 125);
painter.setBrush(varColor);
painter.drawRect(tabRect(tabIndex));
QRect tRect = tabRect(tabIndex);
tRect.setTop(painter.fontMetrics().height() + 6); // Color bar top position consider a height the font and fixed spacing of 6px
tRect.setHeight(4);
tRect.setLeft(tRect.left() + 6);
tRect.setWidth(tRect.width() - 6);
painter.drawRect(tRect);
}
}
......
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