UserSettingsPage: device fingerprint on its own line

phone users have an unusable settings page, as the device fingerprint
stops the layout from shrinking enough to fit the form toggles into
view.

the value is on a new line, and the font size slightly reduced.
settings-squishy
Adasauce 5 years ago
parent 284fc8eaa8
commit 3d22e2f384
Signed by: adasauce
GPG Key ID: B4FD3151235211CB
  1. 8
      src/UserSettingsPage.cpp

@ -293,7 +293,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
QFont monospaceFont;
monospaceFont.setFamily("Monospace");
monospaceFont.setStyleHint(QFont::Monospace);
monospaceFont.setPointSizeF(monospaceFont.pointSizeF() * 0.9);
monospaceFont.setPointSizeF(monospaceFont.pointSizeF() * 0.8);
auto deviceIdLayout = new QHBoxLayout;
deviceIdLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
@ -310,6 +310,9 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
auto deviceFingerprintLayout = new QHBoxLayout;
deviceFingerprintLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
auto deviceFingerprintValueLayout = new QHBoxLayout;
deviceFingerprintValueLayout->setContentsMargins(0, 0, 0, OptionMargin);
auto deviceFingerprintLabel = new QLabel(tr("Device Fingerprint"), this);
deviceFingerprintLabel->setFont(font);
deviceFingerprintLabel->setMargin(0);
@ -317,7 +320,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
deviceFingerprintValue_->setTextInteractionFlags(Qt::TextSelectableByMouse);
deviceFingerprintValue_->setFont(monospaceFont);
deviceFingerprintLayout->addWidget(deviceFingerprintLabel, 1);
deviceFingerprintLayout->addWidget(deviceFingerprintValue_);
deviceFingerprintValueLayout->addWidget(deviceFingerprintValue_, 0, Qt::AlignRight);
auto sessionKeysLayout = new QHBoxLayout;
sessionKeysLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
@ -336,6 +339,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
encryptionLayout_->addLayout(deviceIdLayout);
encryptionLayout_->addLayout(deviceFingerprintLayout);
encryptionLayout_->addLayout(deviceFingerprintValueLayout);
encryptionLayout_->addWidget(new HorizontalLine{this});
encryptionLayout_->addLayout(sessionKeysLayout);

Loading…
Cancel
Save