diff --git a/src/Cloud/OAuthDialog.cpp b/src/Cloud/OAuthDialog.cpp index 745e618e7..9741164c0 100644 --- a/src/Cloud/OAuthDialog.cpp +++ b/src/Cloud/OAuthDialog.cpp @@ -22,6 +22,7 @@ #include "Athlete.h" #include "Context.h" #include "Settings.h" +#include "Colors.h" #include "TimeUtils.h" #if QT_VERSION > 0x050000 @@ -44,6 +45,9 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site, CloudService *service setAttribute(Qt::WA_DeleteOnClose); setWindowTitle(tr("OAuth")); + // we need to scale up, since we zoom the webview on hi-dpi screens + setMinimumSize(640 *dpiXFactor, 640 *dpiYFactor); + if (service) { // ultimately this will be the only way this works if (service->name() == "Strava") site = this->site = STRAVA; if (service->name() == "Dropbox") site = this->site = DROPBOX; @@ -74,6 +78,7 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site, CloudService *service #if defined(NOWEBKIT) || (QT_VERSION > 0x050000 && defined(Q_OS_MAC)) view = new QWebEngineView(); + view->setZoomFactor(dpiXFactor); #else view = new QWebView(); #endif