diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-17 00:46:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-18 20:37:00 +0200 |
| commit | 63ce266351683a94630d7aba58405301b8a8d993 (patch) | |
| tree | 5bde742eea6e3c9443f5aecbb335bc64ccdead31 /src/wx/wx_util.cc | |
| parent | de9a0fddc7e44ad9c5985114ee35e4073641005b (diff) | |
Use different icons for the timeline in dark/light modes.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 9d9d4c599..074f47d61 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -651,6 +651,13 @@ bitmap_path (string name) } +wxString +icon_path(string name) +{ + return gui_is_dark() ? bitmap_path(String::compose("%1_white.png", name)) : bitmap_path(String::compose("%1_black.png", name)); +} + + wxSize small_button_size (wxWindow* parent, wxString text) { |
