Skip to content

Commit

Permalink
Optimize alpha value for legend text color
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 27, 2018
1 parent 711eaa2 commit 6ce09d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -279,7 +279,7 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
if ( ( !node->isVisible() && ( !layer || layer->isSpatial() ) ) || ( layer && !layer->isInScaleRange( mLegendMapViewScale ) ) )
{
QColor fadedTextColor = brush.color();
fadedTextColor.setAlpha( 66 );
fadedTextColor.setAlpha( 128 );
brush.setColor( fadedTextColor );
}
}
Expand Down

1 comment on commit 6ce09d8

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 6ce09d8 Dec 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great.

Please sign in to comment.