diff options
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 60 |
1 files changed, 18 insertions, 42 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index efe2b901..291573ed 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -57,59 +57,35 @@ Controls.ScrollView { | |||
57 | root.currentMail = model.domainObject | 57 | root.currentMail = model.domainObject |
58 | } | 58 | } |
59 | 59 | ||
60 | Avatar { | 60 | RowLayout { |
61 | id: avatar | 61 | Avatar { |
62 | id: avatar | ||
62 | 63 | ||
63 | anchors { | 64 | height: Unit.size * 9 |
64 | verticalCenter: parent.verticalCenter | 65 | width: height |
65 | left: parent.left | ||
66 | leftMargin: Unit.size * 2 | ||
67 | } | ||
68 | |||
69 | height: Unit.size * 9 | ||
70 | width: height | ||
71 | |||
72 | name: model.senderName | ||
73 | } | ||
74 | |||
75 | Controls.Label { | ||
76 | id: senderName | ||
77 | 66 | ||
78 | anchors { | 67 | name: model.senderName |
79 | top: avatar.top | ||
80 | left: avatar.right | ||
81 | leftMargin: Unit.size * 3 | ||
82 | } | 68 | } |
83 | 69 | ||
84 | text: model.senderName | 70 | ColumnLayout { |
85 | 71 | ||
86 | font.weight: Font.DemiBold | 72 | Controls.Label { |
87 | } | 73 | text: model.senderName |
88 | |||
89 | Controls.Label { | ||
90 | id: date | ||
91 | 74 | ||
92 | anchors { | 75 | font.weight: Font.DemiBold |
93 | top: avatar.top | 76 | } |
94 | right: parent.right | ||
95 | rightMargin: Unit.size * 2 | ||
96 | } | ||
97 | 77 | ||
98 | text: Qt.formatDateTime(model.date) | 78 | Controls.Label { |
99 | 79 | text: model.subject | |
100 | font.weight: Font.Light | 80 | } |
101 | } | ||
102 | 81 | ||
103 | Controls.Label { | 82 | Controls.Label { |
104 | id: subject | 83 | text: Qt.formatDateTime(model.date) |
105 | 84 | ||
106 | anchors { | 85 | font.weight: Font.Light |
107 | bottom: avatar.bottom | 86 | } |
108 | left: avatar.right | ||
109 | leftMargin: Unit.size * 3 | ||
110 | } | 87 | } |
111 | 88 | ||
112 | text: model.subject | ||
113 | } | 89 | } |
114 | } | 90 | } |
115 | } | 91 | } |