Verified Commit 8206c5ce authored by Fushan Wen's avatar Fushan Wen
Browse files

breezestyle: Improve coding style

GIT_SILENT
parent 79bf63fd
......@@ -3885,7 +3885,7 @@ namespace Breeze
_helper->renderMenuFrame( painter, option->rect, background, outline, hasAlpha, isTopMenu );
painter->restore();
return true;
}
......@@ -4874,17 +4874,17 @@ namespace Breeze
// normal separator
if( menuItemOption->text.isEmpty() && menuItemOption->icon.isNull() )
{
auto color( _helper->separatorColor( palette ) );
QRect copy( rect );
if( StyleConfigData::menuOpacity() < 100 )
if( StyleConfigData::menuOpacity() < 100 )
{
color = _helper->alphaColor( palette.color( QPalette::WindowText ), 0.25 ) ;
// don`t overlap with menu border
copy.adjust( 1, 0, -1, 0 );
}
_helper->renderSeparator( painter, copy, color );
return true;
......
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