diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:43:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:43:25 +0000 |
| commit | 0962ee9dcc0872e625cd57b70460ffe2b423f29a (patch) | |
| tree | fa7004dd771333a0f4b50c0b01e8026766f01566 | |
| parent | b46c5cbf410b85db43979e8a5ce644b94d6e4f88 (diff) | |
Try again to fix notebook colouring on Windows.
| -rw-r--r-- | src/wx/film_editor.cc | 12 |
1 files 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<Film> 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<Film> 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 (); |
