Flat themes: enable recoloring of the status bar & progress

The flat OutputPaneToggleButton now has the same hover and selected
colors as the sidebar items and toolbar items. This changes the
appearance in the dark theme a bit, and I hope in a good way.

Change-Id: I52826c6d1c4539f799c74580f195a95609ea0416
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2016-03-16 10:18:21 +01:00
parent 3446e00361
commit 49525a11f4
10 changed files with 32 additions and 35 deletions

View File

@@ -72,9 +72,9 @@ void MiniSplitterHandle::resizeEvent(QResizeEvent *event)
void MiniSplitterHandle::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
const QColor color = m_lightColored
? Utils::StyleHelper::borderColor(m_lightColored)
: Utils::creatorTheme()->color(Utils::Theme::SplitterColor);
const QColor color = Utils::creatorTheme()->color(
m_lightColored ? Utils::Theme::FancyToolBarSeparatorColor
: Utils::Theme::SplitterColor);
painter.fillRect(event->rect(), color);
}