Fix MDI subwindow buttons contrast in the MenuBar (#4242)

* Fix MDI subwindow buttons contrast in the MenuBar

* Hard code the button color in LmmsStyle.cpp (thanks @PhysSong)

* Fix code formatting
This commit is contained in:
Umcaruje
2018-04-02 19:36:07 +02:00
committed by GitHub
parent ee910d38fe
commit b77027d6fb

View File

@@ -177,6 +177,13 @@ void LmmsStyle::drawComplexControl( ComplexControl control,
return;
}
}
else if (control == CC_MdiControls)
{
QStyleOptionComplex so(*option);
so.palette.setColor(QPalette::Button, QColor(223, 228, 236));
QProxyStyle::drawComplexControl(control, &so, painter, widget);
return;
}
/* else if( control == CC_ScrollBar )
{
painter->fillRect( option->rect, QApplication::palette().color( QPalette::Active,
@@ -365,4 +372,3 @@ void LmmsStyle::hoverColors( bool sunken, bool hover, bool active, QColor& color
blend = QColor( 33, 33, 33 );
}
}