From 873c3d692507b9b48cac6643b033bec20f75594e Mon Sep 17 00:00:00 2001 From: ababi <albert.babi@savoirfairelinux.com> Date: Thu, 1 Oct 2020 14:11:13 +0200 Subject: [PATCH] callview: change preview width and set minimum value Gitlab: #104 Change-Id: I13414206cecc548b3ff481f4f0f79574cf0b4a4b --- src/constant/JamiTheme.qml | 1 + src/mainview/components/VideoCallPage.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/constant/JamiTheme.qml b/src/constant/JamiTheme.qml index 4614a8881..65e19e238 100644 --- a/src/constant/JamiTheme.qml +++ b/src/constant/JamiTheme.qml @@ -110,6 +110,7 @@ Item { property int preferredMarginSize: 16 property int preferredDialogWidth: 400 property int preferredDialogHeight: 300 + property int minimumPreviewWidth: 120 // Misc. property color white: "white" diff --git a/src/mainview/components/VideoCallPage.qml b/src/mainview/components/VideoCallPage.qml index 16bf1c52b..b5d87684d 100644 --- a/src/mainview/components/VideoCallPage.qml +++ b/src/mainview/components/VideoCallPage.qml @@ -241,7 +241,7 @@ Rectangle { } } - width: videoCallPageMainRect.width / 4 + width: Math.max(videoCallPageMainRect.width / 5, JamiTheme.minimumPreviewWidth) height: { previewImageScalingFactorUpdated return previewRenderer.width * previewRenderer.getPreviewImageScalingFactor() -- GitLab