From b77027d6fb7a935ee16695ef4ab7b8f4976659c5 Mon Sep 17 00:00:00 2001 From: Umcaruje Date: Mon, 2 Apr 2018 19:36:07 +0200 Subject: [PATCH] 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 --- src/gui/LmmsStyle.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/LmmsStyle.cpp b/src/gui/LmmsStyle.cpp index b883a2b2f..e57e29e47 100644 --- a/src/gui/LmmsStyle.cpp +++ b/src/gui/LmmsStyle.cpp @@ -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 ); } } -