summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-02-03 15:08:14 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-02-03 15:08:14 +0100
commit117cfff6c8c2769ac4ae16773daea839d5f0fba8 (patch)
tree44c50a78b91e6af9e0f625c872f232ba7e7ed574 /components/package/contents/ui
parent811d3d797e4a5865e60e74edecde604c7f10f370 (diff)
downloadkube-117cfff6c8c2769ac4ae16773daea839d5f0fba8.tar.gz
kube-117cfff6c8c2769ac4ae16773daea839d5f0fba8.zip
better people layout
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/People.qml77
1 files changed, 47 insertions, 30 deletions
diff --git a/components/package/contents/ui/People.qml b/components/package/contents/ui/People.qml
index 13c98530..516a66fa 100644
--- a/components/package/contents/ui/People.qml
+++ b/components/package/contents/ui/People.qml
@@ -142,22 +142,22 @@ Popup {
142 left: parent.left 142 left: parent.left
143 right: parent.right 143 right: parent.right
144 bottom: parent.bottom 144 bottom: parent.bottom
145 //margins: Kirigami.Units.largeSpacing
146 } 145 }
147 146
148 color: Krigami.Theme.viewBackgroundColor 147 color: Krigami.Theme.viewBackgroundColor
149 148
150 ColumnLayout { 149 Row{
150 id: avatar_row
151 151
152 anchors { 152 height: avatar.height
153 top: parent.top
154 left: parent.left
155 margins: Kirigami.Units.smallSpacing
156 }
157 153
158 width: parent.width 154 anchors {
155 top: parent.top
156 left: parent.left
157 margins: Kirigami.Units.largeSpacing
158 }
159 159
160 RowLayout { 160 spacing: Kirigami.Units.smallSpacing
161 161
162 Avatar { 162 Avatar {
163 id: avatar 163 id: avatar
@@ -169,6 +169,9 @@ Popup {
169 } 169 }
170 170
171 Text { 171 Text {
172
173 anchors.verticalCenter: parent.verticalCenter
174
172 color: Kirigami.Theme.textColor 175 color: Kirigami.Theme.textColor
173 opacity: 0.8 176 opacity: 0.8
174 177
@@ -178,41 +181,55 @@ Popup {
178 } 181 }
179 } 182 }
180 183
181 Text { 184 Text {
185 id: email_label
186
187 anchors {
188 top: avatar_row.bottom
189 left: avatar_row.left
190 leftMargin: Kirigami.Units.gridUnit * 2.5
191 topMargin: Kirigami.Units.largeSpacing
192 }
193
182 color: Kirigami.Theme.textColor 194 color: Kirigami.Theme.textColor
183 text: "Email" 195 text: "Email"
184 font.weight: Font.DemiBold 196 font.weight: Font.DemiBold
185 opacity: 0.8 197 opacity: 0.8
198 }
199
200 ColumnLayout {
201
202 anchors {
203 top: email_label.bottom
204 left: email_label.left
186 } 205 }
187 206
188 ColumnLayout { 207 Repeater {
189 Repeater { 208 model: contactController.emails
190 model: contactController.emails
191 209
192 RowLayout { 210 RowLayout {
193 Text { text: modelData } 211 Text { text: modelData }
194 Controls.ToolButton { 212 Controls.ToolButton {
195 iconName: "edit-delete" 213 iconName: "edit-delete"
196 214
197 onClicked: { 215 onClicked: {
198 contactController.removeEmail(modelData) 216 contactController.removeEmail(modelData)
199 }
200 } 217 }
201 } 218 }
202 } 219 }
220 }
203 221
204 RowLayout { 222 RowLayout {
205 TextField { 223 TextField {
206 id: newEmail 224 id: newEmail
207 } 225 }
208 226
209 Button { 227 Button {
210 text: "Add email" 228 text: "Add email"
211 229
212 onClicked: { 230 onClicked: {
213 contactController.addEmail(newEmail.text) 231 contactController.addEmail(newEmail.text)
214 newEmail.text = ""; 232 newEmail.text = "";
215 }
216 } 233 }
217 } 234 }
218 } 235 }