Support buttons.
[dcpomatic.git] / src / wx / subtitle_appearance_dialog.cc
index dd8353cf4866dc298992d5ba4a90c50fde561fd7..69a7d743d3b6b2e38c2b51d3354d88e2d3770290 100644 (file)
@@ -22,6 +22,7 @@
 #include "rgba_colour_picker.h"
 #include "static_text.h"
 #include "check_box.h"
+#include "dcpomatic_button.h"
 #include "lib/string_text_file_content.h"
 #include "lib/text_content.h"
 #include "lib/ffmpeg_subtitle_stream.h"
@@ -112,7 +113,7 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr
 
                overall_sizer->Add (colours_panel, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
 
-               wxButton* restore = new wxButton (this, wxID_ANY, _("Restore to original colours"));
+               wxButton* restore = new Button (this, _("Restore to original colours"));
                restore->Bind (wxEVT_BUTTON, bind (&SubtitleAppearanceDialog::restore, this));
                overall_sizer->Add (restore, 0, wxALL, DCPOMATIC_SIZER_X_GAP);
        }