Skip to content

Commit 6ce09d8

Browse files
authoredDec 27, 2018
Optimize alpha value for legend text color
1 parent 711eaa2 commit 6ce09d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/layertree/qgslayertreemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
279279
if ( ( !node->isVisible() && ( !layer || layer->isSpatial() ) ) || ( layer && !layer->isInScaleRange( mLegendMapViewScale ) ) )
280280
{
281281
QColor fadedTextColor = brush.color();
282-
fadedTextColor.setAlpha( 66 );
282+
fadedTextColor.setAlpha( 128 );
283283
brush.setColor( fadedTextColor );
284284
}
285285
}

1 commit comments

Comments
 (1)

nirvn commented on Dec 27, 2018

@nirvn
Contributor

Great.

Please sign in to comment.