From b10aa645e03b38c5abfa4784f67fbe271012a7f1 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 30 Sep 2022 17:27:48 +0200 Subject: [PATCH] tweak chat components --- resources/qml/TimelineSectionHeader.qml | 2 +- resources/qml/components/FlatButton.qml | 10 ---------- resources/qml/delegates/FileMessage.qml | 4 ++-- resources/qml/delegates/Pill.qml | 2 +- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/resources/qml/TimelineSectionHeader.qml b/resources/qml/TimelineSectionHeader.qml index cf350439..7cfb4ab9 100644 --- a/resources/qml/TimelineSectionHeader.qml +++ b/resources/qml/TimelineSectionHeader.qml @@ -34,7 +34,7 @@ Column { anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined color: palette.brightText - height: Math.round(fontMetrics.height * 1.4) + height: Math.round(fontMetrics.height * 2) horizontalAlignment: Text.AlignHCenter text: room ? room.formatDateSeparator(timestamp) : "" verticalAlignment: Text.AlignVCenter diff --git a/resources/qml/components/FlatButton.qml b/resources/qml/components/FlatButton.qml index 0636bc04..190f3af1 100644 --- a/resources/qml/components/FlatButton.qml +++ b/resources/qml/components/FlatButton.qml @@ -18,16 +18,6 @@ Button { property string iconImage: "" - MultiEffect { - anchors.fill: control.background - shadowHorizontalOffset: 3 - shadowVerticalOffset: 3 - shadowBlur: 8 - shadowEnabled: true - shadowColor: "#80000000" - source: control.background - } - contentItem: RowLayout { spacing: 0 anchors.centerIn: parent diff --git a/resources/qml/delegates/FileMessage.qml b/resources/qml/delegates/FileMessage.qml index b2845dbe..6087611b 100644 --- a/resources/qml/delegates/FileMessage.qml +++ b/resources/qml/delegates/FileMessage.qml @@ -32,8 +32,8 @@ Control { color: palette.base radius: 22 - Layout.preferredHeight: 44 - Layout.preferredWidth: 44 + Layout.preferredHeight: 36 + Layout.preferredWidth: 36 Image { id: img diff --git a/resources/qml/delegates/Pill.qml b/resources/qml/delegates/Pill.qml index 6b10c5b8..b551c3fb 100644 --- a/resources/qml/delegates/Pill.qml +++ b/resources/qml/delegates/Pill.qml @@ -9,7 +9,7 @@ Label { property bool isStateEvent color: palette.brightText horizontalAlignment: Text.AlignHCenter - height: Math.round(fontMetrics.height * 1.4) + height: contentHeight * 1.2 width: contentWidth * 1.2 background: Rectangle {