Skip to content

Commit

Permalink
Merge pull request #2989 from nextcloud/bugfix/fix-appearance-login-d…
Browse files Browse the repository at this point in the history
…ialog

Display the content of the login dialog correct
  • Loading branch information
Felix Weilbach authored Mar 16, 2021
2 parents 6d6da18 + ff7932b commit 162dff9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/gui/creds/webflowcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
9 changes: 1 addition & 8 deletions src/gui/creds/webflowcredentialsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions src/gui/wizard/flow2authwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Flow2AuthWidget::Flow2AuthWidget(QWidget *parent)

_ui.progressLayout->addWidget(_progressIndi);
stopSpinner(false);

customizeStyle();
}

void Flow2AuthWidget::setLogo()
Expand Down

0 comments on commit 162dff9

Please sign in to comment.