Use sqlite for cinema and DKDM recipient lists.
[dcpomatic.git] / src / wx / timeline_labels_view.cc
index 4450fef0552ec2dd4f60e4ef59f24370655b09df..c869d7ec524a63d85287e42dfe765a0674aa8dd6 100644 (file)
 */
 
 
+#include "content_timeline.h"
 #include "timeline_labels_view.h"
-#include "timeline.h"
-#include <wx/wx.h>
+#include "wx_util.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/graphics.h>
+#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
 
 
 using std::list;
@@ -30,8 +34,8 @@ using std::max;
 using std::min;
 
 
-TimelineLabelsView::TimelineLabelsView (Timeline& tl)
-       : TimelineView (tl)
+TimelineLabelsView::TimelineLabelsView(ContentTimeline& tl)
+       : ContentTimelineView(tl)
 {
        wxString labels[] = {
                _("Video"),
@@ -61,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) {