Changeset View
Changeset View
Standalone View
Standalone View
src/apps/qml/qml/messages/JitsiVideoMessage.qml
Show All 27 Lines | |||||
28 | import QtQuick.Layouts 1.12 | 28 | import QtQuick.Layouts 1.12 | ||
29 | 29 | | |||
30 | import "../js/message.js" as MessageScript; | 30 | import "../js/message.js" as MessageScript; | ||
31 | import "../common" | 31 | import "../common" | ||
32 | 32 | | |||
33 | MessageBase { | 33 | MessageBase { | ||
34 | id: root | 34 | id: root | ||
35 | 35 | | |||
36 | implicitHeight: rowLayout.height | 36 | implicitHeight: mainLayout.height | ||
37 | 37 | | |||
38 | RowLayout { | 38 | ColumnLayout { | ||
39 | id: rowLayout | 39 | id: mainLayout | ||
40 | | ||||
41 | width: parent.width | ||||
42 | | ||||
43 | spacing: 0 | ||||
44 | | ||||
45 | Item { | ||||
46 | id: topSpacer | ||||
40 | 47 | | |||
41 | width: parent.width | 48 | width: parent.width | ||
49 | height: Kirigami.Units.smallSpacing | ||||
50 | } | ||||
42 | 51 | | |||
52 | RowLayout { | ||||
43 | AvatarImage { | 53 | AvatarImage { | ||
44 | id: avatarRect | 54 | id: avatarRect | ||
45 | 55 | | |||
46 | Layout.alignment: Qt.AlignTop | 56 | Layout.alignment: Qt.AlignTop | ||
47 | avatarurl: i_avatar | 57 | avatarurl: i_avatar | ||
48 | aliasname: i_aliasname | 58 | aliasname: i_aliasname | ||
49 | username: i_username | 59 | username: i_username | ||
50 | onShowUserInfo: { | 60 | onShowUserInfo: { | ||
51 | //TODO | 61 | //TODO | ||
52 | } | 62 | } | ||
53 | } | 63 | } | ||
54 | 64 | | |||
55 | Item { | 65 | Item { | ||
56 | Layout.fillWidth: true | 66 | Layout.fillWidth: true | ||
57 | } | 67 | } | ||
58 | 68 | | |||
59 | Rectangle { | 69 | Rectangle { | ||
60 | Layout.alignment: Qt.AlignCenter | 70 | Layout.alignment: Qt.AlignCenter | Qt.AlignTop | ||
61 | width: textLabel.implicitWidth + 6*Kirigami.Units.smallSpacing | 71 | width: textLabel.implicitWidth + 6*Kirigami.Units.smallSpacing | ||
62 | height: textLabel.height | 72 | height: textLabel.height | ||
63 | 73 | | |||
64 | color: Kirigami.Theme.disabledTextColor | 74 | color: Kirigami.Theme.disabledTextColor | ||
65 | radius: 4*Kirigami.Units.smallSpacing | 75 | radius: 4*Kirigami.Units.smallSpacing | ||
66 | 76 | | |||
67 | QQC2.Label { | 77 | QQC2.Label { | ||
68 | id: textLabel | 78 | id: textLabel | ||
Show All 19 Lines | |||||
88 | } | 98 | } | ||
89 | } | 99 | } | ||
90 | } | 100 | } | ||
91 | Item { | 101 | Item { | ||
92 | Layout.fillWidth: true | 102 | Layout.fillWidth: true | ||
93 | } | 103 | } | ||
94 | TimestampText { | 104 | TimestampText { | ||
95 | id: timestampText | 105 | id: timestampText | ||
106 | | ||||
107 | Layout.alignment: Qt.AlignTop | ||||
96 | timestamp: i_timestamp | 108 | timestamp: i_timestamp | ||
97 | } | 109 | } | ||
98 | } | 110 | } | ||
111 | | ||||
112 | Item { | ||||
113 | id: bottomSpacer | ||||
114 | | ||||
115 | width: parent.width | ||||
116 | height: Kirigami.Units.smallSpacing | ||||
117 | } | ||||
118 | } | ||||
99 | } | 119 | } |