summaryrefslogtreecommitdiff
path: root/src/wx/timeline.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.cc
parent63ce266351683a94630d7aba58405301b8a8d993 (diff)
Improve timeline view colouring in dark mode.
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 6886daa42..a9372b6bb 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -207,7 +207,7 @@ Timeline::paint_main ()
if (_zoom_point) {
/* Translate back as _down_point and _zoom_point do not take scroll into account */
gc->Translate (vsx * _x_scroll_rate, vsy * _y_scroll_rate);
- gc->SetPen (*wxBLACK_PEN);
+ gc->SetPen(gui_is_dark() ? *wxWHITE_PEN : *wxBLACK_PEN);
gc->SetBrush (*wxTRANSPARENT_BRUSH);
gc->DrawRectangle (
min (_down_point.x, _zoom_point->x),