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:
@@ -296,7 +296,9 @@ void FutureProgress::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QPainter p(this);
|
||||
if (creatorTheme()->widgetStyle() == Theme::StyleFlat) {
|
||||
p.fillRect(rect(), creatorTheme()->color(Theme::FutureProgressBackgroundColor));
|
||||
p.fillRect(rect(), StyleHelper::isBaseColorDefault()
|
||||
? creatorTheme()->color(Theme::FutureProgressBackgroundColor)
|
||||
: StyleHelper::baseColor());
|
||||
} else {
|
||||
QLinearGradient grad = StyleHelper::statusBarGradient(rect());
|
||||
p.fillRect(rect(), grad);
|
||||
|
Reference in New Issue
Block a user