diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-26 22:27:05 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-26 22:54:51 +0200 |
commit | f452bdf2b01ca6c39bdb3ecd4f61ec1eb1eef211 (patch) | |
tree | 42281470d39f726b69eeedfb1ff3055935414fe4 /resources/qml/delegates | |
parent | Improve compile times a tiny bit (diff) | |
download | nheko-f452bdf2b01ca6c39bdb3ecd4f61ec1eb1eef211.tar.xz |
Make settings update immediately in qml and allow limiting timeline width
Limiting improves readability on wide monitors. The immediate update of the settings is done by just exposing settings as properties and then setting the settings as a context property.
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/TextMessage.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index d17723f3..b3c45c36 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml @@ -6,5 +6,5 @@ MatrixText { width: parent ? parent.width : undefined height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined clip: true - font.pointSize: (timelineSettings.enlarge_emoji_only_msg && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? settings.font_size * 3 : settings.font_size + font.pointSize: (settings.enlargeEmojiOnlyMessages && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? settings.fontSize * 3 : settings.fontSize } |