From 7abfe4508cc3cf50142c8c92d0152885c8f5963b Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 22 May 2025 18:11:03 +0200 Subject: [PATCH] Set a maximum dp to avoid too big display on large screens --- Linphone/view/Style/DefaultStyle.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linphone/view/Style/DefaultStyle.qml b/Linphone/view/Style/DefaultStyle.qml index f8aa8a9f1..21ecbbf1f 100644 --- a/Linphone/view/Style/DefaultStyle.qml +++ b/Linphone/view/Style/DefaultStyle.qml @@ -46,7 +46,8 @@ QtObject { property real defaultHeight: 1080.0 property real defaultWidth: 1920.0 - property double dp: (Screen.width/Screen.height)/(defaultWidth/defaultHeight) + property real maxDp: 0.98 + property real dp: Math.min((Screen.width/Screen.height)/(defaultWidth/defaultHeight), maxDp) onDpChanged: { console.log("Screen ratio changed", dp)