summaryrefslogtreecommitdiff
path: root/src/wx/timeline_reels_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_reels_view.cc
parent63ce266351683a94630d7aba58405301b8a8d993 (diff)
Improve timeline view colouring in dark mode.
Diffstat (limited to 'src/wx/timeline_reels_view.cc')
-rw-r--r--src/wx/timeline_reels_view.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/timeline_reels_view.cc b/src/wx/timeline_reels_view.cc
index 331f6580d..2ec8f9e82 100644
--- a/src/wx/timeline_reels_view.cc
+++ b/src/wx/timeline_reels_view.cc
@@ -21,6 +21,7 @@
#include "timeline.h"
#include "timeline_reels_view.h"
+#include "wx_util.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/graphics.h>
@@ -65,14 +66,15 @@ TimelineReelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>>)
double const pps = _timeline.pixels_per_second().get ();
- gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (0, 0, 255), 1, wxPENSTYLE_SOLID));
+ wxColour const colour = gui_is_dark() ? wxColour(182, 204, 240) : wxColour(0, 0, 255);
+ gc->SetPen(*wxThePenList->FindOrCreatePen(colour, 1, wxPENSTYLE_SOLID));
auto path = gc->CreatePath ();
path.MoveToPoint (time_x (DCPTime (0)), _y);
path.AddLineToPoint (time_x (_timeline.film()->length()), _y);
gc->StrokePath (path);
- gc->SetFont (gc->CreateFont (*wxNORMAL_FONT, wxColour (0, 0, 255)));
+ gc->SetFont(gc->CreateFont(*wxNORMAL_FONT, colour));
int reel = 1;
for (auto i: _timeline.film()->reels()) {