tweak chat components
This commit is contained in:
parent
49bc9255ad
commit
b10aa645e0
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user