diff --git a/3d-viewer/3d_canvas/board_adapter.cpp b/3d-viewer/3d_canvas/board_adapter.cpp index 0558e161ce..cab9d70398 100644 --- a/3d-viewer/3d_canvas/board_adapter.cpp +++ b/3d-viewer/3d_canvas/board_adapter.cpp @@ -26,6 +26,7 @@ #include "board_adapter.h" #include #include +#include #include <3d_rendering/raytracing/shapes2D/polygon_2d.h> #include #include @@ -162,6 +163,7 @@ BOARD_ADAPTER::BOARD_ADAPTER() : #define ADD_COLOR( list, r, g, b, a, name ) \ list.push_back( CUSTOM_COLOR_ITEM( r/255.0, g/255.0, b/255.0, a, name ) ) + ADD_COLOR( g_SilkscreenColors, 245, 245, 245, 1.0, NotSpecifiedPrm() ); // White ADD_COLOR( g_SilkscreenColors, 20, 51, 36, 1.0, "Green" ); ADD_COLOR( g_SilkscreenColors, 181, 19, 21, 1.0, "Red" ); ADD_COLOR( g_SilkscreenColors, 2, 59, 162, 1.0, "Blue" ); @@ -170,6 +172,7 @@ BOARD_ADAPTER::BOARD_ADAPTER() : ADD_COLOR( g_SilkscreenColors, 32, 2, 53, 1.0, "Purple" ); ADD_COLOR( g_SilkscreenColors, 194, 195, 0, 1.0, "Yellow" ); + ADD_COLOR( g_MaskColors, 20, 51, 36, 0.83, NotSpecifiedPrm() ); // Green ADD_COLOR( g_MaskColors, 20, 51, 36, 0.83, "Green" ); ADD_COLOR( g_MaskColors, 91, 168, 12, 0.83, "Light Green" ); ADD_COLOR( g_MaskColors, 13, 104, 11, 0.83, "Saturated Green" ); diff --git a/pcbnew/board_stackup_manager/board_stackup.cpp b/pcbnew/board_stackup_manager/board_stackup.cpp index b2277367ff..5b3394e2d6 100644 --- a/pcbnew/board_stackup_manager/board_stackup.cpp +++ b/pcbnew/board_stackup_manager/board_stackup.cpp @@ -61,7 +61,7 @@ BOARD_STACKUP_ITEM::BOARD_STACKUP_ITEM( BOARD_STACKUP_ITEM_TYPE aType ) case BS_ITEM_TYPE_SOLDERMASK: m_TypeName = "soldermask"; - m_Color = "Green"; + m_Color = NotSpecifiedPrm(); SetMaterial( NotSpecifiedPrm() ); // or other solder mask material name SetThickness( GetMaskDefaultThickness() ); SetEpsilonR( DEFAULT_EPSILON_R_SOLDERMASK );