From 60ef6a659f66ea735e2cbc40f56ac1228fbc7658 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 13 Apr 2023 07:23:00 -0400 Subject: [PATCH] Use custom font for chat compose area. --- CHANGELOG.md | 1 + linphone-app/ui/modules/Common/Form/DroppableTextArea.qml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38feeafff..666f0ed48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Section date timezone in chat. +- Use custom font for chat compose area. ## 5.0.15 - 2023-04-11 diff --git a/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml b/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml index 8dabce082..a6ba36e20 100644 --- a/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml +++ b/linphone-app/ui/modules/Common/Form/DroppableTextArea.qml @@ -6,6 +6,7 @@ import QtQuick.Layouts 1.12 import Common 1.0 import Linphone 1.0 import Common.Styles 1.0 +import Units 1.0 import Utils 1.0 // ============================================================================= @@ -155,7 +156,9 @@ Item { } color: DroppableTextAreaStyle.text.color - font.pointSize: DroppableTextAreaStyle.text.pointSize-1 + property font customFont : SettingsModel.textMessageFont + font.family: customFont.family + font.pointSize: Units.dp * customFont.pointSize rightPadding: fileChooserButton.width + fileChooserButton.anchors.rightMargin + DroppableTextAreaStyle.fileChooserButton.margins