Skip to content

Commit 0b1a330

Browse files
committed
Fix panel color on Windows
FolderDisplay.cpp, form.fpb, interface.cpp ~ set color on Windows to Window color ~ set more elements to force redraw though this does not seem to have an effect
1 parent a620738 commit 0b1a330

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

source/FolderDisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FolderDisplay::FolderDisplay(wxWindow* parentWindow, wxWindow* eventWindow, Dire
3030
data = contents;
3131
//fix color on Windows
3232
#if defined _WIN32
33-
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_APPWORKSPACE ));
33+
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ));
3434
#endif
3535
}
3636

source/form.fbp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@
613613
<property name="tooltip"></property>
614614
<property name="window_extra_style"></property>
615615
<property name="window_name"></property>
616-
<property name="window_style"></property>
616+
<property name="window_style">wxFULL_REPAINT_ON_RESIZE</property>
617617
<object class="splitteritem" expanded="1">
618618
<object class="wxPanel" expanded="1">
619619
<property name="BottomDockable">1</property>
@@ -1653,7 +1653,7 @@
16531653
<property name="tooltip"></property>
16541654
<property name="window_extra_style"></property>
16551655
<property name="window_name"></property>
1656-
<property name="window_style"></property>
1656+
<property name="window_style">wxFULL_REPAINT_ON_RESIZE</property>
16571657
<property name="wrap">-1</property>
16581658
</object>
16591659
</object>
@@ -1681,7 +1681,7 @@
16811681
<property name="tooltip"></property>
16821682
<property name="window_extra_style"></property>
16831683
<property name="window_name"></property>
1684-
<property name="window_style"></property>
1684+
<property name="window_style">wxFULL_REPAINT_ON_RESIZE</property>
16851685
<object class="dataViewListColumn" expanded="0">
16861686
<property name="align">wxALIGN_LEFT</property>
16871687
<property name="ellipsize"></property>

source/interface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ MainFrameBase::MainFrameBase( wxWindow* parent, wxWindowID id, const wxString& t
9494

9595
mainSizer->Add( toolbarSizer, 1, wxEXPAND|wxALIGN_BOTTOM, 5 );
9696

97-
mainSplitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE|wxSP_NOBORDER|wxSP_PERMIT_UNSPLIT|wxSP_THIN_SASH );
97+
mainSplitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE|wxSP_NOBORDER|wxSP_PERMIT_UNSPLIT|wxSP_THIN_SASH|wxFULL_REPAINT_ON_RESIZE );
9898
mainSplitter->SetSashGravity( 1 );
9999
mainSplitter->Connect( wxEVT_IDLE, wxIdleEventHandler( MainFrameBase::mainSplitterOnIdle ), NULL, this );
100100
mainSplitter->SetMinimumPaneSize( 220 );
@@ -225,11 +225,11 @@ FolderDisplayBase::FolderDisplayBase( wxWindow* parent, wxWindowID id, const wxP
225225
mainSizer->SetFlexibleDirection( wxBOTH );
226226
mainSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
227227

228-
ItemName = new wxStaticText( this, wxID_ANY, wxT("Open a folder to view statistics"), wxDefaultPosition, wxDefaultSize, 0 );
228+
ItemName = new wxStaticText( this, wxID_ANY, wxT("Open a folder to view statistics"), wxDefaultPosition, wxDefaultSize, 0|wxFULL_REPAINT_ON_RESIZE );
229229
ItemName->Wrap( -1 );
230230
mainSizer->Add( ItemName, 0, wxALL, 5 );
231231

232-
ListCtrl = new wxDataViewListCtrl( this, FDISP, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES );
232+
ListCtrl = new wxDataViewListCtrl( this, FDISP, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES|wxFULL_REPAINT_ON_RESIZE );
233233
nameCol = ListCtrl->AppendTextColumn( wxT("File Name"), wxDATAVIEW_CELL_INERT, -1, static_cast<wxAlignment>(wxALIGN_LEFT), wxDATAVIEW_COL_RESIZABLE );
234234
percentCol = ListCtrl->AppendProgressColumn( wxT("Percent"), wxDATAVIEW_CELL_INERT, -1, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_SORTABLE );
235235
sizeCol = ListCtrl->AppendTextColumn( wxT("Size"), wxDATAVIEW_CELL_INERT, 100, static_cast<wxAlignment>(wxALIGN_RIGHT), 0 );

0 commit comments

Comments
 (0)