summaryrefslogtreecommitdiff
path: root/src/wx/video_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-20 23:12:55 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 23:12:55 +0100
commit137f4b5b6ccf7545d0499f57150b005bdfdf5768 (patch)
tree9dcea390cc4d88d40eba20b9a88763dfc099aff4 /src/wx/video_panel.cc
parent15d7164347404249542dc5ae75cfd37011aef7c3 (diff)
parent15235c0d2fad7e916cda5b2d6ce79c4e9a38c4f9 (diff)
Merge tag 'v2.16.79' into v2.17.x
Diffstat (limited to 'src/wx/video_panel.cc')
-rw-r--r--src/wx/video_panel.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc
index 0280f16a0..5a91df8fe 100644
--- a/src/wx/video_panel.cc
+++ b/src/wx/video_panel.cc
@@ -100,7 +100,7 @@ VideoPanel::create ()
int const link_height = 32;
#elif defined(DCPOMATIC_OSX)
int const crop_width = 56;
- int const link_width = 23;
+ int const link_width = 8 + 15 / dpi_scale_factor(this);
int const link_height = 28;
#else
int const crop_width = 56;
@@ -119,8 +119,10 @@ VideoPanel::create ()
boost::bind (&VideoPanel::left_crop_changed, this)
);
+ auto const link_path = bitmap_path(gui_is_dark() ? "link_white.png" : "link_black.png");
+
_left_right_link = new wxToggleButton (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(link_width, link_height));
- _left_right_link->SetBitmap (wxBitmap(bitmap_path("link.png"), wxBITMAP_TYPE_PNG));
+ _left_right_link->SetBitmap(wxBitmap(link_path, wxBITMAP_TYPE_PNG));
_right_crop_label = create_label (this, _("Right"), true);
_right_crop = new ContentSpinCtrl<VideoContent> (
@@ -145,7 +147,7 @@ VideoPanel::create ()
);
_top_bottom_link = new wxToggleButton (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(link_width, link_height));
- _top_bottom_link->SetBitmap (wxBitmap(bitmap_path("link.png"), wxBITMAP_TYPE_PNG));
+ _top_bottom_link->SetBitmap(wxBitmap(link_path, wxBITMAP_TYPE_PNG));
_bottom_crop_label = create_label (this, _("Bottom"), true);
_bottom_crop = new ContentSpinCtrl<VideoContent> (