Changeset View
Changeset View
Standalone View
Standalone View
smsapp/qml/ChatMessage.qml
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 66 | Rectangle { | |||
---|---|---|---|---|---|
74 | layer.enabled: box.visible | 74 | layer.enabled: box.visible | ||
75 | layer.effect: DropShadow { | 75 | layer.effect: DropShadow { | ||
76 | verticalOffset: Kirigami.Units.gridUnit * 0.08 | 76 | verticalOffset: Kirigami.Units.gridUnit * 0.08 | ||
77 | horizontalOffset: Kirigami.Units.gridUnit * 0.08 | 77 | horizontalOffset: Kirigami.Units.gridUnit * 0.08 | ||
78 | color: Kirigami.Theme.disabledTextColor | 78 | color: Kirigami.Theme.disabledTextColor | ||
79 | samples: 10 | 79 | samples: 10 | ||
80 | spread: 0.1 | 80 | spread: 0.1 | ||
81 | } | 81 | } | ||
82 | } | | |||
83 | 82 | | |||
84 | ColumnLayout { | 83 | ColumnLayout { | ||
85 | id: content | 84 | id: content | ||
86 | spacing: 0 | 85 | spacing: 0 | ||
87 | anchors.centerIn: box | 86 | anchors.centerIn: box | ||
88 | 87 | | |||
89 | Controls.Label { | 88 | Controls.Label { | ||
90 | text: messageBody | 89 | text: messageBody | ||
91 | textFormat: Text.PlainText | 90 | textFormat: Text.PlainText | ||
92 | wrapMode: Text.Wrap | 91 | wrapMode: Text.Wrap | ||
93 | color: sentByMe ? Kirigami.Theme.buttonTextColor : Kirigami.Theme.complementaryTextColor | 92 | color: sentByMe ? Kirigami.Theme.buttonTextColor : Kirigami.Theme.complementaryTextColor | ||
94 | | ||||
95 | Layout.maximumWidth: root.width - Kirigami.Units.gridUnit * 6 | 93 | Layout.maximumWidth: root.width - Kirigami.Units.gridUnit * 6 | ||
96 | } | 94 | } | ||
97 | 95 | | |||
98 | RowLayout { | 96 | RowLayout { | ||
99 | Controls.Label { | 97 | Controls.Label { | ||
100 | id: dateLabel | 98 | id: dateLabel | ||
101 | text: Qt.formatDateTime(dateTime, "dd. MMM yyyy, hh:mm") | 99 | text: Qt.formatDateTime(dateTime, "dd. MMM yyyy, hh:mm") | ||
102 | color: Kirigami.Theme.disabledTextColor | 100 | color: Kirigami.Theme.disabledTextColor | ||
103 | font.pixelSize: Kirigami.Units.gridUnit * 0.8 | 101 | font.pixelSize: Kirigami.Units.gridUnit * 0.8 | ||
104 | } | 102 | } | ||
105 | } | 103 | } | ||
106 | } | 104 | } | ||
105 | } | ||||
107 | 106 | | |||
108 | Item { | 107 | Item { | ||
109 | Layout.fillWidth: true | 108 | Layout.fillWidth: true | ||
110 | } | 109 | } | ||
111 | } | 110 | } |