Move layer colors from PCB_RENDER_SETTINGS to RENDER_SETTINGS

This commit is contained in:
Jon Evans
2017-02-16 17:30:31 +01:00
committed by Maciej Suminski
parent 7058e4eb21
commit 7cd72d6ffb
5 changed files with 46 additions and 57 deletions
+8
View File
@@ -62,6 +62,14 @@ void RENDER_SETTINGS::update()
{
m_hiContrastColor = COLOR4D( m_hiContrastFactor, m_hiContrastFactor, m_hiContrastFactor,
m_layerOpacity );
// Calculate darkened/highlighted variants of layer colors
for( int i = 0; i < TOTAL_LAYER_COUNT; i++ )
{
m_layerColorsHi[i] = m_layerColors[i].Brightened( m_highlightFactor );
m_layerColorsDark[i] = m_layerColors[i].Darkened( 1.0 - m_highlightFactor );
m_layerColorsSel[i] = m_layerColors[i].Brightened( m_selectFactor );
}
}