summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorlkito <lkiti17@freeuni.edu.ge>2020-05-19 23:04:38 +0400
committerlkito <lkiti17@freeuni.edu.ge>2020-05-21 16:31:27 +0400
commitd8b89e2ef0a1a650a4bc249025ad6987cbf2176d (patch)
tree3064221b74ba459cb5aca8b7130065dca46673d6 /resources
parentadd a bit of additional logging to image paste (diff)
downloadnheko-d8b89e2ef0a1a650a4bc249025ad6987cbf2176d.tar.xz
Added an optional feature to show bigger emoji-only messages with 3 or less emoji
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml2
-rw-r--r--resources/qml/delegates/TextMessage.qml1
2 files changed, 3 insertions, 0 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index b5097bc7..145a82ce 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -26,6 +26,7 @@ Page { category: "user" property bool avatar_circles: true property string emoji_font_family: "default" + property double font_size: Qt.application.font.pointSize } Settings { @@ -33,6 +34,7 @@ Page { category: "user/timeline" property bool buttons: true property bool message_hover_highlight: false + property bool enlarge_emoji_only_msg: false } Menu { diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
index bef4f76d..d17723f3 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -6,4 +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 }