summaryrefslogtreecommitdiff
path: root/src/wx/about_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-19 14:27:41 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-21 22:07:15 +0200
commit76a84e2661ba288fc6accc01c939e1b9bc891579 (patch)
treeab464c5e6e1c88e5c242b108cba8f90e067b7aa9 /src/wx/about_dialog.cc
parentb83cd733adf565f5e7e96e226d447a1beeef9a39 (diff)
Bring some more branding into the variant.
Diffstat (limited to 'src/wx/about_dialog.cc')
-rw-r--r--src/wx/about_dialog.cc35
1 files changed, 20 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,