summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-11-07 12:34:31 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-11-07 12:34:31 +0100
commitbe858f86c510447657cbf0da0f503e0376beab28 (patch)
treebd664f8842537f395d0caeecabd13f61b449880b /components/package/contents/ui
parent7d04632378a3383cab6a1e84be2f359d9829870f (diff)
downloadkube-be858f86c510447657cbf0da0f503e0376beab28.tar.gz
kube-be858f86c510447657cbf0da0f503e0376beab28.zip
change composer layout according to mockup by ken
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/Composer.qml101
-rw-r--r--components/package/contents/ui/FocusComposer.qml25
2 files changed, 69 insertions, 57 deletions
diff --git a/components/package/contents/ui/Composer.qml b/components/package/contents/ui/Composer.qml
index e8dc4e1a..05bad7d0 100644
--- a/components/package/contents/ui/Composer.qml
+++ b/components/package/contents/ui/Composer.qml
@@ -53,25 +53,23 @@ Item {
53 53
54 anchors.fill: parent 54 anchors.fill: parent
55 55
56 GridLayout { 56 TextField {
57 57 id: subject
58 columns: 2
59 58
60 Kirigami.Label { 59 Layout.fillWidth: true
61 text: "From"
62 }
63 60
64 ComboBox { 61 placeholderText: "Enter Subject"
65 id: identityCombo
66 model: composer.identityModel
67 textRole: "displayName"
68 62
69 Layout.fillWidth: true 63 text: composer.subject
70 64
71 onCurrentIndexChanged: { 65 onTextChanged: {
72 composer.currentIdentityIndex = currentIndex 66 composer.subject = text;
73 }
74 } 67 }
68 }
69
70 GridLayout {
71
72 columns: 2
75 73
76 Kirigami.Label { 74 Kirigami.Label {
77 text: "To" 75 text: "To"
@@ -91,28 +89,6 @@ Item {
91 composer.to = text; 89 composer.to = text;
92 } 90 }
93 } 91 }
94
95 Button {
96 id: ccButton
97
98 text: "Cc"
99
100 onClicked: {
101 cc.visible = true
102 ccButton.visible = false
103 }
104 }
105
106 Button {
107 id: bccButton
108
109 text: "Bcc"
110
111 onClicked: {
112 bcc.visible = true
113 bccButton.visible = false
114 }
115 }
116 } 92 }
117 93
118 Kirigami.Label { 94 Kirigami.Label {
@@ -131,7 +107,7 @@ Item {
131 text: composer.cc 107 text: composer.cc
132 108
133 onTextChanged: { 109 onTextChanged: {
134 composer.cc = text; 110 composer.cc = text;
135 } 111 }
136 } 112 }
137 113
@@ -151,43 +127,56 @@ Item {
151 text: composer.bcc 127 text: composer.bcc
152 128
153 onTextChanged: { 129 onTextChanged: {
154 composer.bcc = text; 130 composer.bcc = text;
155 } 131 }
156 } 132 }
157 } 133 }
158 134
159 TextField { 135 RowLayout {
160 id: subject 136 Kirigami.Label {
161 137 text: "Sending as"
162 Layout.fillWidth: true 138 }
163 139
164 placeholderText: "Enter Subject" 140 ComboBox {
141 id: identityCombo
142 model: composer.identityModel
143 textRole: "displayName"
165 144
166 text: composer.subject 145 Layout.fillWidth: true
167 146
168 onTextChanged: { 147 onCurrentIndexChanged: {
169 composer.subject = text; 148 composer.currentIdentityIndex = currentIndex
149 }
170 } 150 }
171 }
172 151
173 Item { 152 Button {
153 id: ccButton
174 154
175 Layout.fillWidth: true 155 text: "Cc"
176 156
177 height: subject.height * 1.5 157 onClicked: {
158 cc.visible = true
159 ccButton.visible = false
160 }
161 }
178 162
179 Button { 163 Button {
164 id: bccButton
180 165
181 anchors { 166 text: "Bcc"
182 bottom: parent.bottom
183 }
184
185 text: "Save as Draft"
186 167
187 onClicked: { 168 onClicked: {
188 composer.saveAsDraft() 169 bcc.visible = true
170 bccButton.visible = false
189 } 171 }
190 } 172 }
173 }
174
175 Item {
176
177 Layout.fillWidth: true
178
179 height: subject.height * 1.5
191 180
192 Button { 181 Button {
193 182
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml
index bbee1edc..9129dba9 100644
--- a/components/package/contents/ui/FocusComposer.qml
+++ b/components/package/contents/ui/FocusComposer.qml
@@ -52,7 +52,30 @@ KubeComponents.OverlayDialog {
52 } 52 }
53 53
54 RowLayout { 54 RowLayout {
55 Layout.alignment: Qt.AlignRight 55
56 Button {
57
58 text: "Discard"
59
60 onClicked: {
61 root.destroy()
62 }
63 }
64
65 Item {
66 Layout.fillWidth: true
67 }
68
69
70 Button {
71
72 text: "Save as Draft"
73
74 onClicked: {
75 composer.saveAsDraft()
76 root.destroy()
77 }
78 }
56 79
57 Button { 80 Button {
58 text: "Send" 81 text: "Send"