+ _outline_width->SetToolTip (_("Outline width cannot be set unless you are burning in subtitles."));
+ }
+}
+
+void
+SubtitleAppearanceDialog::active_jobs_changed (optional<string> last)
+{
+ if (last && *last == "examine_subtitles") {
+ _colours_panel->Show (true);
+ if (_finding) {
+ _finding->Show (false);
+ }
+ add_colours ();
+ _overall_sizer->Layout ();
+ _overall_sizer->SetSizeHints (this);
+ }
+}
+
+void
+SubtitleAppearanceDialog::add_colours ()
+{
+ auto colours = _stream->colours ();
+ for (auto const& i: _stream->colours()) {
+ auto from = new wxPanel(_colours_panel, wxID_ANY);
+ from->SetBackgroundColour(wxColour(i.first.r, i.first.g, i.first.b, i.first.a));
+ _colour_table->Add (from, 1, wxEXPAND);
+ auto to = new RGBAColourPicker(_colours_panel, i.second);
+ _colour_table->Add (to, 1, wxEXPAND);
+ _pickers[i.first] = to;