tweak chat components

This commit is contained in:
Michele Guerini Rocco 2022-09-30 17:27:48 +02:00
parent 49bc9255ad
commit b10aa645e0
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
4 changed files with 4 additions and 14 deletions

View File

@ -34,7 +34,7 @@ Column {
anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
color: palette.brightText color: palette.brightText
height: Math.round(fontMetrics.height * 1.4) height: Math.round(fontMetrics.height * 2)
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: room ? room.formatDateSeparator(timestamp) : "" text: room ? room.formatDateSeparator(timestamp) : ""
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter

View File

@ -18,16 +18,6 @@ Button {
property string iconImage: "" property string iconImage: ""
MultiEffect {
anchors.fill: control.background
shadowHorizontalOffset: 3
shadowVerticalOffset: 3
shadowBlur: 8
shadowEnabled: true
shadowColor: "#80000000"
source: control.background
}
contentItem: RowLayout { contentItem: RowLayout {
spacing: 0 spacing: 0
anchors.centerIn: parent anchors.centerIn: parent

View File

@ -32,8 +32,8 @@ Control {
color: palette.base color: palette.base
radius: 22 radius: 22
Layout.preferredHeight: 44 Layout.preferredHeight: 36
Layout.preferredWidth: 44 Layout.preferredWidth: 36
Image { Image {
id: img id: img

View File

@ -9,7 +9,7 @@ Label {
property bool isStateEvent property bool isStateEvent
color: palette.brightText color: palette.brightText
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
height: Math.round(fontMetrics.height * 1.4) height: contentHeight * 1.2
width: contentWidth * 1.2 width: contentWidth * 1.2
background: Rectangle { background: Rectangle {