Display the content of the login dialog correct
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Thu, 11 Mar 2021 10:32:23 +0000 (11:32 +0100)
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>
Tue, 16 Mar 2021 13:34:34 +0000 (13:34 +0000)
This adjustment is necessary because of the changes of the new account
wizard that were introduced with:
e0b7ef15b207f59d73884f8e1c12a206803c5c40

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/gui/creds/webflowcredentials.cpp
src/gui/creds/webflowcredentialsdialog.cpp
src/gui/wizard/flow2authwidget.cpp

index 2915d9ed597dc2a192d80ead2c7de1ae7d8ee984..17b8630b50f612f376e462f9e66d8f06a226e267 100644 (file)
@@ -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();
index 4253097eb0a2ede73543c8465c66fe7a15291474..42b4ee22fc80968502b3ce05d49ec3dfb8747769 100644 (file)
@@ -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) {
index 04b78d5cca83c8baebe12b2cc32a4724e7fe5b6b..edb0812cb0ad67088348b3c7fbd2ae8649f5a311 100644 (file)
@@ -45,6 +45,8 @@ Flow2AuthWidget::Flow2AuthWidget(QWidget *parent)
 
     _ui.progressLayout->addWidget(_progressIndi);
     stopSpinner(false);
+
+    customizeStyle();
 }
 
 void Flow2AuthWidget::setLogo()