From 5c86247e214b6437d38cb7698d06016f694e2181 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 3 Feb 2024 21:00:28 +0300 Subject: [PATCH] Fix inactive cells being black in default settings panels on MSW. --- pcbnew/dialogs/panel_fp_editor_defaults.cpp | 2 +- pcbnew/dialogs/panel_setup_text_and_graphics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/panel_fp_editor_defaults.cpp b/pcbnew/dialogs/panel_fp_editor_defaults.cpp index 765f0c32cf..b23e72974e 100644 --- a/pcbnew/dialogs/panel_fp_editor_defaults.cpp +++ b/pcbnew/dialogs/panel_fp_editor_defaults.cpp @@ -240,7 +240,7 @@ PANEL_FP_EDITOR_DEFAULTS::~PANEL_FP_EDITOR_DEFAULTS() 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 = [&]( int row, int col ) diff --git a/pcbnew/dialogs/panel_setup_text_and_graphics.cpp b/pcbnew/dialogs/panel_setup_text_and_graphics.cpp index 624feb5857..02af3dd853 100644 --- a/pcbnew/dialogs/panel_setup_text_and_graphics.cpp +++ b/pcbnew/dialogs/panel_setup_text_and_graphics.cpp @@ -128,7 +128,7 @@ void PANEL_SETUP_TEXT_AND_GRAPHICS::onUnitsChanged( wxCommandEvent& aEvent ) 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 ) \ m_grid->SetCellValue( row, col, m_Frame->StringFromValue( val, true ) )