Commit 35a518bc authored by David Redondo's avatar David Redondo 🏎
Browse files

Reinstore correct menu border color

cac4b544 introduced drawing separators
of transparent QMenus with WindowText color with 0.25 opacity. While the change
in drawMenuItemControl uses the correct condition, drawPanelMenuPrimitive
checked whether the widget had an alpha channel. This is wrong because we set
Qt::WA_TranslucentBackground always on all menus. The very low opacity made it
look like the section headers, separators and highlight were drawing outside of
the menu.
BUG:428710
parent 42a885a9
...@@ -3791,8 +3791,8 @@ namespace Breeze ...@@ -3791,8 +3791,8 @@ namespace Breeze
auto outline( _helper->frameOutlineColor( palette ) ); auto outline( _helper->frameOutlineColor( palette ) );
painter->save(); painter->save();
if ( hasAlpha ) { if ( StyleConfigData::menuOpacity() < 100) {
if ( painter && widget && widget->isWindow() ) { if ( painter && widget && widget->isWindow() ) {
painter->setCompositionMode( QPainter::CompositionMode_Source ); painter->setCompositionMode( QPainter::CompositionMode_Source );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment