Skip to content

Commit 54114c5

Browse files
committed
feat(AppearanceView): Added screen scale factor
Adds a new 100% screen scaling factor for mobile to provide a more natural and consistent visual baseline across devices. Also updates the default UI configuration: - Font size: set to S - Padding: set to XXS These defaults help achieve a cleaner, more compact layout while improving readability and overall UI density on mobile.
1 parent 4f94e42 commit 54114c5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

mobile/wrapperApp/sources/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main(int argc, char* argv[])
1111
{
1212
Q_INIT_RESOURCE(resources);
1313
qputenv("QT_FILE_SELECTORS", "noWebEngine");
14-
qputenv("QT_SCALE_FACTOR", "0.8");
14+
qputenv("QT_SCALE_FACTOR", "1.0");
1515

1616
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
1717
qmlRegisterModule("Qt.labs.settings", 1, 1);

ui/app/mainui/AppMain.qml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,15 @@ Item {
869869
property var recentEmojis
870870
property string skinColor // NB: must be a string for the twemoji lib to work; we don't want the `#` in the name
871871
property int theme: Theme.Style.System
872-
property int fontSize: Theme.FontSize.FontSizeM
872+
property int fontSize: {
873+
if (appMain.width < Theme.portraitBreakpoint.width) {
874+
return Theme.FontSize.FontSizeS
875+
}
876+
return Theme.FontSize.FontSizeM
877+
}
873878
property int paddingFactor: {
874879
if (appMain.width < Theme.portraitBreakpoint.width) {
875-
return Theme.PaddingFactor.PaddingS
880+
return Theme.PaddingFactor.PaddingXXS
876881
}
877882
return Theme.PaddingFactor.PaddingM
878883
}

0 commit comments

Comments
 (0)