summaryrefslogtreecommitdiff
path: root/src/wx/timeline_labels_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-17 20:36:55 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-18 20:37:00 +0200
commit179685ef5cfb81d362282ee2fae526533e6404a3 (patch)
tree354d75141352ab018a7a7020a28c68691ec1a23e /src/wx/timeline_labels_view.cc
parent63ce266351683a94630d7aba58405301b8a8d993 (diff)
Improve timeline view colouring in dark mode.
Diffstat (limited to 'src/wx/timeline_labels_view.cc')
-rw-r--r--src/wx/timeline_labels_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/timeline_labels_view.cc b/src/wx/timeline_labels_view.cc
index 7075d4b7d..181adc5ca 100644
--- a/src/wx/timeline_labels_view.cc
+++ b/src/wx/timeline_labels_view.cc
@@ -21,6 +21,7 @@
#include "timeline.h"
#include "timeline_labels_view.h"
+#include "wx_util.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/graphics.h>
@@ -64,7 +65,8 @@ void
TimelineLabelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>>)
{
int const h = _timeline.pixels_per_track ();
- gc->SetFont (gc->CreateFont(wxNORMAL_FONT->Bold(), wxColour(0, 0, 0)));
+ wxColour const colour = gui_is_dark() ? *wxWHITE : *wxBLACK;
+ gc->SetFont(gc->CreateFont(wxNORMAL_FONT->Bold(), colour));
int fy = 0;
if (_video_tracks) {