Commit 20602d44 authored by David Redondo's avatar David Redondo 🏎 Committed by Nate Graham
Browse files

Restore 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.
parent b28d5f69
......@@ -3791,8 +3791,8 @@ namespace Breeze
auto outline( _helper->frameOutlineColor( palette ) );
if ( hasAlpha ) {
if ( StyleConfigData::menuOpacity() < 100) {
if ( painter && widget && widget->isWindow() ) {
painter->setCompositionMode( QPainter::CompositionMode_Source );
Supports Markdown
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