diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-19 14:27:41 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-21 22:07:15 +0200 |
| commit | 76a84e2661ba288fc6accc01c939e1b9bc891579 (patch) | |
| tree | ab464c5e6e1c88e5c242b108cba8f90e067b7aa9 /src/wx | |
| parent | b83cd733adf565f5e7e96e226d447a1beeef9a39 (diff) | |
Bring some more branding into the variant.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/about_dialog.cc | 35 | ||||
| -rw-r--r-- | src/wx/wx_util.cc | 5 |
2 files changed, 25 insertions, 15 deletions
diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 28bee89b9..220092da6 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -28,6 +28,7 @@ #include "wx_util.h" #include "wx_variant.h" #include "lib/compose.hpp" +#include "lib/variant.h" #include "lib/version.h" #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS @@ -68,22 +69,26 @@ AboutDialog::AboutDialog (wxWindow* parent) sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2)); sizer->AddSpacer (12); - t = new StaticText ( - this, - _("Free, open-source DCP creation from almost anything."), - wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER - ); - t->SetFont (subtitle_font); - - sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8)); - - auto h = new wxHyperlinkCtrl ( - this, wxID_ANY, - wxT ("dcpomatic.com"), - wxT ("https://dcpomatic.com") - ); + if (variant::show_tagline()) + { + t = new StaticText( + this, + _("Free, open-source DCP creation from almost anything."), + wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER + ); + t->SetFont(subtitle_font); + sizer->Add(t, wxSizerFlags().Centre().Border(wxALL, 8)); + } - sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8)); + if (variant::show_dcpomatic_website()) + { + auto h = new wxHyperlinkCtrl( + this, wxID_ANY, + wxT("dcpomatic.com"), + wxT("https://dcpomatic.com") + ); + sizer->Add(h, wxSizerFlags().Centre().Border(wxALL, 8)); + } t = new StaticText ( this, diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 49a3ca5c3..baf5990aa 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -37,6 +37,7 @@ #include "lib/job.h" #include "lib/job_manager.h" #include "lib/util.h" +#include "lib/variant.h" #include "lib/version.h" #include <dcp/locale_convert.h> #include <dcp/warnings.h> @@ -603,6 +604,10 @@ setup_audio_channels_choice (wxChoice* choice, int minimum) wxSplashScreen* maybe_show_splash () { + if (!variant::show_splash()) { + return nullptr; + } + wxSplashScreen* splash = nullptr; try { |
