summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorMalte E <97891689+maltee1@users.noreply.github.com>2022-02-21 01:39:32 +0100
committerGitHub <noreply@github.com>2022-02-21 00:39:32 +0000
commit1c8a5c645d44fdeb0319cd03dd6986b168d3bf1b (patch)
tree86728c3a544ac5c898a3a34ddc5dff5e4c5202d0 /resources/qml/delegates
parentMerge pull request #951 from maltee1/fix_timeline_scrollbar (diff)
downloadnheko-1c8a5c645d44fdeb0319cd03dd6986b168d3bf1b.tar.xz
Add sender names to state events (#948)
* add sendernames to state events

* Center state events and make them less tiny
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/NoticeMessage.qml4
-rw-r--r--resources/qml/delegates/Pill.qml5
2 files changed, 5 insertions, 4 deletions
diff --git a/resources/qml/delegates/NoticeMessage.qml b/resources/qml/delegates/NoticeMessage.qml

index 544af109..342469db 100644 --- a/resources/qml/delegates/NoticeMessage.qml +++ b/resources/qml/delegates/NoticeMessage.qml
@@ -3,6 +3,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later +import QtQuick 2.5 import im.nheko 1.0 @@ -10,5 +11,6 @@ TextMessage { property bool isStateEvent font.italic: true color: Nheko.colors.buttonText - font.pointSize: isStateEvent? 0.75*fontMetrics.font.pointSize : 1*fontMetrics.font.pointSize + font.pointSize: isStateEvent? 0.8*Settings.fontSize : Settings.fontSize + horizontalAlignment: isStateEvent? Text.AlignHCenter : undefined } diff --git a/resources/qml/delegates/Pill.qml b/resources/qml/delegates/Pill.qml
index a3964f73..8b67c346 100644 --- a/resources/qml/delegates/Pill.qml +++ b/resources/qml/delegates/Pill.qml
@@ -11,9 +11,8 @@ Label { property bool isStateEvent color: Nheko.colors.text horizontalAlignment: Text.AlignHCenter - //height: contentHeight * 1.2 - //width: contentWidth * 1.2 - font.pointSize: isStateEvent? 0.75*fontMetrics.font.pointSize : 1*fontMetrics.font.pointSize + height: Math.round(fontMetrics.height * 1.4) + width: contentWidth * 1.2 background: Rectangle { radius: parent.height / 2