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