From: Felix Weilbach Date: Thu, 11 Mar 2021 10:32:23 +0000 (+0100) Subject: Display the content of the login dialog correct X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~318^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff7932bb54cd83d8028325f0f82e19ae346447e4;p=nextcloud-desktop.git Display the content of the login dialog correct This adjustment is necessary because of the changes of the new account wizard that were introduced with: e0b7ef15b207f59d73884f8e1c12a206803c5c40 Signed-off-by: Felix Weilbach --- diff --git a/src/gui/creds/webflowcredentials.cpp b/src/gui/creds/webflowcredentials.cpp index 2915d9ed5..17b8630b5 100644 --- a/src/gui/creds/webflowcredentials.cpp +++ b/src/gui/creds/webflowcredentials.cpp @@ -156,8 +156,8 @@ void WebFlowCredentials::askFromUser() { _askDialog->setUrl(url); } - QString msg = tr("You have been logged out of %1 as user %2. Please login again") - .arg(_account->displayName(), _user); + QString msg = tr("You have been logged out of %1 as user %2. Please login again.") + .arg(_account->displayName(), _user); _askDialog->setInfo(msg); _askDialog->show(); diff --git a/src/gui/creds/webflowcredentialsdialog.cpp b/src/gui/creds/webflowcredentialsdialog.cpp index 4253097eb..42b4ee22f 100644 --- a/src/gui/creds/webflowcredentialsdialog.cpp +++ b/src/gui/creds/webflowcredentialsdialog.cpp @@ -27,19 +27,12 @@ WebFlowCredentialsDialog::WebFlowCredentialsDialog(Account *account, bool useFlo _layout->setSpacing(0); _layout->setMargin(0); - if(_useFlow2) { - _headerBanner = new HeaderBanner(this); - _layout->addWidget(_headerBanner); - Theme *theme = Theme::instance(); - _headerBanner->setup(tr("Log in"), theme->wizardHeaderLogo(), theme->wizardHeaderBanner(), - Qt::AutoText, QString::fromLatin1("color:#fff;")); - } - _containerLayout = new QVBoxLayout(this); _containerLayout->setSpacing(spacing); _containerLayout->setMargin(margin); _infoLabel = new QLabel(); + _infoLabel->setAlignment(Qt::AlignCenter); _containerLayout->addWidget(_infoLabel); if (_useFlow2) { diff --git a/src/gui/wizard/flow2authwidget.cpp b/src/gui/wizard/flow2authwidget.cpp index 04b78d5cc..edb0812cb 100644 --- a/src/gui/wizard/flow2authwidget.cpp +++ b/src/gui/wizard/flow2authwidget.cpp @@ -45,6 +45,8 @@ Flow2AuthWidget::Flow2AuthWidget(QWidget *parent) _ui.progressLayout->addWidget(_progressIndi); stopSpinner(false); + + customizeStyle(); } void Flow2AuthWidget::setLogo()