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
|