diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-09 20:29:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-21 09:46:56 +0200 |
| commit | 7f641936b00ec87b6eea2ef0a5daa1b1710cf9f4 (patch) | |
| tree | 9a7436c3d508759b74d8b397d551f30d93db0616 /src/wx/video_view.cc | |
| parent | 03e0b16f47542996b1a711df265bf3dd4fbebdad (diff) | |
Extract colours to VideoView.
Diffstat (limited to 'src/wx/video_view.cc')
| -rw-r--r-- | src/wx/video_view.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wx/video_view.cc b/src/wx/video_view.cc index 387d4052f..4d80e2535 100644 --- a/src/wx/video_view.cc +++ b/src/wx/video_view.cc @@ -173,3 +173,17 @@ VideoView::add_dropped () emit (boost::bind(boost::ref(TooManyDropped))); } } + + +wxColour +VideoView::pad_colour () const +{ + if (_viewer->pad_black()) { + return wxColour(0, 0, 0); + } else if (gui_is_dark()) { + return wxColour(50, 50, 50); + } else { + return wxColour(240, 240, 240); + } +} + |
