From 1eb8f7cbaa0b71732baf1a6e560c8ed51e4ad09a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 24 Feb 2020 06:25:52 -0800 Subject: mobile/profile: make the fonts 25% smaller This will seem too small to many - it's pushing it, but it leads to a significantly less cluttered profile, and we now have the zoom capability for readability. I think this is a nice improvement. Signed-off-by: Dirk Hohndel --- profile-widget/qmlprofile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'profile-widget') diff --git a/profile-widget/qmlprofile.cpp b/profile-widget/qmlprofile.cpp index 52ac799ca..733ee4633 100644 --- a/profile-widget/qmlprofile.cpp +++ b/profile-widget/qmlprofile.cpp @@ -8,6 +8,8 @@ #include #include +const double fontScale = 0.6; // profile looks less cluttered with smaller font + QMLProfile::QMLProfile(QQuickItem *parent) : QQuickPaintedItem(parent), m_devicePixelRatio(1.0), @@ -20,7 +22,7 @@ QMLProfile::QMLProfile(QQuickItem *parent) : setFlags(QQuickItem::ItemClipsChildrenToShape | QQuickItem::ItemHasContents ); m_profileWidget->setProfileState(); m_profileWidget->setPrintMode(true); - m_profileWidget->setFontPrintScale(0.8); + m_profileWidget->setFontPrintScale(fontScale); connect(QMLManager::instance(), &QMLManager::sendScreenChanged, this, &QMLProfile::screenChanged); setDevicePixelRatio(QMLManager::instance()->lastDevicePixelRatio()); } @@ -122,7 +124,7 @@ void QMLProfile::setDevicePixelRatio(qreal dpr) { if (dpr != m_devicePixelRatio) { m_devicePixelRatio = dpr; - m_profileWidget->setFontPrintScale(0.8 * dpr); + m_profileWidget->setFontPrintScale(fontScale * dpr); updateDevicePixelRatio(dpr); emit devicePixelRatioChanged(); } -- cgit v1.2.3-70-g09d2