Skip to content
Permalink
Browse files

Optimize alpha value for legend text color

  • Loading branch information
m-kuhn committed Dec 27, 2018
1 parent 711eaa2 commit 6ce09d873f889be2f0ecdbae960d4f17667d940a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodel.cpp
@@ -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 );
}
}

1 comment on commit 6ce09d8

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn commented on 6ce09d8 Dec 27, 2018

Great.

Please sign in to comment.
You can’t perform that action at this time.