Gerbview: rename diff mode by forced opacity display mode and make opacity adjustable.
The diff mode (option in left toolbar) was never a differential display mode. It is actually an option to force the alpha channel (opacity) of layer colors to a given value. So change the name and tool tips to force opacity mode, and make the opacity parameter adjustable in preferences. Gerbview: cleanup: remove a old and dead code.
This commit is contained in:
@@ -62,8 +62,8 @@ void GERBVIEW_RENDER_SETTINGS::LoadColors( const COLOR_SETTINGS* aSettings )
|
||||
{
|
||||
COLOR4D baseColor = aSettings->GetColor( i );
|
||||
|
||||
if( gvconfig()->m_Display.m_DiffMode )
|
||||
baseColor.a = 0.75;
|
||||
if( gvconfig()->m_Display.m_ForceOpacityMode )
|
||||
baseColor.a = gvconfig()->m_Display.m_OpacityModeAlphaValue;
|
||||
|
||||
m_layerColors[i] = baseColor;
|
||||
m_layerColorsHi[i] = baseColor.Brightened( 0.5 );
|
||||
|
||||
Reference in New Issue
Block a user