forked from qt-creator/qt-creator
Flat Theme: Final touches for tool bar separators
To properly support Diana's design, we need a dedicated theme color for the separator. Also, the vertical separators have a certain margin. Change-Id: I4d009342a9320848ec97f5c2d324bfb672650101 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -275,7 +275,7 @@ void FancyActionBar::paintEvent(QPaintEvent *event)
|
||||
painter.fillRect(event->rect(), StyleHelper::isBaseColorDefault()
|
||||
? creatorTheme()->color(Theme::FancyTabBarBackgroundColor)
|
||||
: StyleHelper::baseColor());
|
||||
painter.setPen(StyleHelper::separatorColor());
|
||||
painter.setPen(creatorTheme()->color(Theme::FancyToolBarSeparatorColor));
|
||||
painter.drawLine(borderRect.topLeft(), borderRect.topRight());
|
||||
} else {
|
||||
painter.setPen(StyleHelper::sidebarShadow());
|
||||
|
||||
Reference in New Issue
Block a user