From b630aa88a4ff3d3df30a90ed819d000d082005ab Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 23 Jul 2021 17:58:06 -0700 Subject: [PATCH] aboutdialog: revised layout --- app/dialog/about/about.cpp | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/app/dialog/about/about.cpp b/app/dialog/about/about.cpp index 3c13440fa..e3500e217 100644 --- a/app/dialog/about/about.cpp +++ b/app/dialog/about/about.cpp @@ -76,30 +76,28 @@ AboutDialog::AboutDialog(bool welcome_dialog, QWidget *parent) : layout->addLayout(horiz_layout); - // Patrons where necessary - if (!patrons.isEmpty()) { - layout->addWidget(new QLabel()); - layout->addWidget(QtUtils::CreateHorizontalLine()); - layout->addWidget(new QLabel()); + // Patrons where possible + layout->addWidget(new QLabel()); - QString opening_statement; + QString opening_statement; - if (welcome_dialog) { - opening_statement = tr("Olive relies on support from the community to continue its development."); - } else { - opening_statement = tr("Olive wouldn't be possible without the support of gracious donations from the following people."); - } + if (welcome_dialog || patrons.isEmpty()) { + opening_statement = tr("Olive relies on support from the community to continue its development."); + } else { + opening_statement = tr("Olive wouldn't be possible without the support of gracious donations from the following people."); + } - QLabel* support_lbl = new QLabel(tr("%1 " - "If you like this project, please consider " - "donating or " - "pledging to " + QLabel* support_lbl = new QLabel(tr("%1 " + "If you like this project, please consider making a " + "one-time donation or " + "pledging monthly to " "support its development.").arg(opening_statement)); - support_lbl->setWordWrap(true); - support_lbl->setAlignment(Qt::AlignCenter); - support_lbl->setOpenExternalLinks(true); - layout->addWidget(support_lbl); + support_lbl->setWordWrap(true); + support_lbl->setAlignment(Qt::AlignCenter); + support_lbl->setOpenExternalLinks(true); + layout->addWidget(support_lbl); + if (!patrons.isEmpty()) { ScrollingLabel* scroll = new ScrollingLabel(patrons); scroll->StartAnimating(); layout->addWidget(scroll);