summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-15 21:00:12 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-16 00:07:10 +0100
commitbf124d1ee666a1cef597f6e6291c931d276b831f (patch)
tree3d680a8fa4c1e3f384408423d21f2232e6d68127 /src
parentf3c87bd59115b8d03837f98ee920cf0150a35c37 (diff)
Add dark-mode link icon.
Diffstat (limited to 'src')
-rw-r--r--src/wx/video_panel.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc
index db42a0c28..859c0a886 100644
--- a/src/wx/video_panel.cc
+++ b/src/wx/video_panel.cc
@@ -127,8 +127,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> (
@@ -153,7 +155,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> (