forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user