Fix inactive cells being black in default settings panels on MSW.

This commit is contained in:
Alex 2024-02-03 21:00:28 +03:00
parent d4879e05ac
commit 5c86247e21
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ PANEL_FP_EDITOR_DEFAULTS::~PANEL_FP_EDITOR_DEFAULTS()
void PANEL_FP_EDITOR_DEFAULTS::loadFPSettings( FOOTPRINT_EDITOR_SETTINGS* aCfg ) void PANEL_FP_EDITOR_DEFAULTS::loadFPSettings( FOOTPRINT_EDITOR_SETTINGS* aCfg )
{ {
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_BACKGROUND ); wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
auto disableCell = auto disableCell =
[&]( int row, int col ) [&]( int row, int col )

View File

@ -128,7 +128,7 @@ void PANEL_SETUP_TEXT_AND_GRAPHICS::onUnitsChanged( wxCommandEvent& aEvent )
bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow() bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow()
{ {
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_BACKGROUND ); wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
#define SET_MILS_CELL( row, col, val ) \ #define SET_MILS_CELL( row, col, val ) \
m_grid->SetCellValue( row, col, m_Frame->StringFromValue( val, true ) ) m_grid->SetCellValue( row, col, m_Frame->StringFromValue( val, true ) )