From fb8dcb52d1ffa9cbdd6f9f5d97a7c41e4fa15423 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 27 May 2020 10:17:16 +0100 Subject: [PATCH] Don't gray out mandatory field names. (Even though they are read-only. It makes it look like the whole field is disabled.) --- eeschema/fields_grid_table.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 35a7d77636..c867b52e8c 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -257,7 +257,10 @@ wxGridCellAttr* FIELDS_GRID_TABLE::GetAttr( int aRow, int aCol, wxGridCellAtt { tmp = m_fieldNameAttr->Clone(); tmp->SetReadOnly( true ); - tmp->SetTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) ); + + if( rowIsReadOnly ) + tmp->SetTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) ); + return tmp; } else