X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fvideo_panel.cc;h=e065f9bb4b8ef548a3389b3bddce6611a73a0540;hb=HEAD;hp=b27db2547baa72e5e2d1f7b9720184dd1997685d;hpb=3ffd0163026be24e5373e0674c3301ed37546e44;p=dcpomatic.git diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index b27db2547..e065f9bb4 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -108,7 +108,11 @@ VideoPanel::create () int const link_height = 32; #elif defined(DCPOMATIC_OSX) int const crop_width = 56; +#if wxCHECK_VERSION(3, 2, 0) + int const link_width = 8 + 15 / dpi_scale_factor(this); +#else int const link_width = 23; +#endif int const link_height = 28; #else int const crop_width = 56; @@ -127,8 +131,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 ( @@ -153,7 +159,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 (