From 0962ee9dcc0872e625cd57b70460ffe2b423f29a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Dec 2012 20:43:25 +0000 Subject: [PATCH] Try again to fix notebook colouring on Windows. --- src/wx/film_editor.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index f1d23a922..d3f318af6 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -65,9 +65,9 @@ FilmEditor::FilmEditor (shared_ptr f, wxWindow* parent) { wxSizer* s = new wxBoxSizer (wxVERTICAL); SetSizer (s); - _notebook = new wxNotebook (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_NOPAGETHEME); + _notebook = new wxNotebook (this, wxID_ANY); s->Add (_notebook, 1); - + make_film_panel (); _notebook->AddPage (_film_panel, _("Film"), true); make_video_panel (); @@ -77,6 +77,14 @@ FilmEditor::FilmEditor (shared_ptr f, wxWindow* parent) make_subtitle_panel (); _notebook->AddPage (_subtitle_panel, _("Subtitles"), false); + wxColour col = _notebook->GetThemeBackgroundColour(); + if (col.Ok()) { + _film_panel->SetBackgroundColour (col); + _video_panel->SetBackgroundColour (col); + _audio_panel->SetBackgroundColour (col); + _subtitle_panel->SetBackgroundColour (col); + } + set_film (_film); connect_to_widgets (); -- 2.30.2