summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailListView.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-03-29 12:22:11 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-03-29 12:22:11 +0200
commite50b7e6eaa624de3b87091290461c52046e61bb6 (patch)
tree6459e2f9dbcb55b36ecc55c45c4d6b0051b6bf5c /components/package/contents/ui/MailListView.qml
parentc1215a71c753a3724f5eaeca82f5dc22319abef3 (diff)
downloadkube-e50b7e6eaa624de3b87091290461c52046e61bb6.tar.gz
kube-e50b7e6eaa624de3b87091290461c52046e61bb6.zip
port maillistview to kube theme
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r--components/package/contents/ui/MailListView.qml41
1 files changed, 21 insertions, 20 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index e6e69251..25fecba6 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -22,6 +22,7 @@ import QtQuick.Controls 1.4 as Controls
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23
24import org.kde.kirigami 1.0 as Kirigami 24import org.kde.kirigami 1.0 as Kirigami
25import org.kube.components.theme 1.0 as KubeTheme
25 26
26import org.kube.framework.domain 1.0 as KubeFramework 27import org.kube.framework.domain 1.0 as KubeFramework
27 28
@@ -164,31 +165,31 @@ Item {
164 PropertyChanges {target: delegateRoot; parent: root} 165 PropertyChanges {target: delegateRoot; parent: root}
165 166
166 PropertyChanges {target: delegateRoot; opacity: 0.7} 167 PropertyChanges {target: delegateRoot; opacity: 0.7}
167 PropertyChanges {target: background; color: Kirigami.Theme.highlightColor} 168 PropertyChanges {target: background; color: KubeTheme.Colors.highlightColor}
168 PropertyChanges {target: subject; color: Kirigami.Theme.highlightedTextColor} 169 PropertyChanges {target: subject; color: KubeTheme.Colors.highlightedTextColor}
169 PropertyChanges {target: sender; color: Kirigami.Theme.highlightedTextColor} 170 PropertyChanges {target: sender; color: KubeTheme.Colors.highlightedTextColor}
170 PropertyChanges {target: date; color: Kirigami.Theme.highlightedTextColor} 171 PropertyChanges {target: date; color: KubeTheme.Colors.highlightedTextColor}
171 PropertyChanges {target: threadCounter; color: Kirigami.Theme.highlightedTextColor} 172 PropertyChanges {target: threadCounter; color: KubeTheme.Colors.highlightedTextColor}
172 }, 173 },
173 State { 174 State {
174 name: "selected" 175 name: "selected"
175 when: listView.currentIndex == index && !mouseArea.drag.active 176 when: listView.currentIndex == index && !mouseArea.drag.active
176 177
177 PropertyChanges {target: background; color: Kirigami.Theme.highlightColor} 178 PropertyChanges {target: background; color: KubeTheme.Colors.highlightColor}
178 PropertyChanges {target: subject; color: Kirigami.Theme.highlightedTextColor} 179 PropertyChanges {target: subject; color: KubeTheme.Colors.highlightedTextColor}
179 PropertyChanges {target: sender; color: Kirigami.Theme.highlightedTextColor} 180 PropertyChanges {target: sender; color: KubeTheme.Colors.highlightedTextColor}
180 PropertyChanges {target: date; color: Kirigami.Theme.highlightedTextColor} 181 PropertyChanges {target: date; color: KubeTheme.Colors.highlightedTextColor}
181 PropertyChanges {target: threadCounter; color: Kirigami.Theme.highlightedTextColor} 182 PropertyChanges {target: threadCounter; color: KubeTheme.Colors.highlightedTextColor}
182 }, 183 },
183 State { 184 State {
184 name: "hovered" 185 name: "hovered"
185 when: mouseArea.containsMouse && !mouseArea.drag.active 186 when: mouseArea.containsMouse && !mouseArea.drag.active
186 187
187 PropertyChanges {target: background; color: Kirigami.Theme.buttonHoverColor; opacity: 0.7} 188 PropertyChanges {target: background; color: Kirigami.Theme.buttonHoverColor; opacity: 0.7}
188 PropertyChanges {target: subject; color: Kirigami.Theme.highlightedTextColor} 189 PropertyChanges {target: subject; color: KubeTheme.Colors.highlightedTextColor}
189 PropertyChanges {target: sender; color: Kirigami.Theme.highlightedTextColor} 190 PropertyChanges {target: sender; color: KubeTheme.Colors.highlightedTextColor}
190 PropertyChanges {target: date; color: Kirigami.Theme.highlightedTextColor} 191 PropertyChanges {target: date; color: KubeTheme.Colors.highlightedTextColor}
191 PropertyChanges {target: threadCounter; color: Kirigami.Theme.highlightedTextColor} 192 PropertyChanges {target: threadCounter; color: KubeTheme.Colors.highlightedTextColor}
192 } 193 }
193 ] 194 ]
194 195
@@ -216,9 +217,9 @@ Item {
216 217
217 anchors.fill: parent 218 anchors.fill: parent
218 219
219 color: Kirigami.Theme.viewBackgroundColor 220 color: KubeTheme.Colors.viewBackgroundColor
220 221
221 border.color: Kirigami.Theme.backgroundColor 222 border.color: KubeTheme.Colors.backgroundColor
222 border.width: 1 223 border.width: 1
223 } 224 }
224 225
@@ -244,7 +245,7 @@ Item {
244 id: subject 245 id: subject
245 246
246 text: model.subject 247 text: model.subject
247 color: model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.textColor 248 color: model.unread ? KubeTheme.Colors.highlightColor : KubeTheme.Colors.textColor
248 249
249 maximumLineCount: 2 250 maximumLineCount: 2
250 width: content.width - Kirigami.Units.gridUnit * 3 251 width: content.width - Kirigami.Units.gridUnit * 3
@@ -257,7 +258,7 @@ Item {
257 258
258 text: model.senderName 259 text: model.senderName
259 font.italic: true 260 font.italic: true
260 color: Kirigami.Theme.textColor 261 color: KubeTheme.Colors.textColor
261 width: delegateRoot.width - Kirigami.Units.gridUnit * 3 262 width: delegateRoot.width - Kirigami.Units.gridUnit * 3
262 elide: Text.ElideRight 263 elide: Text.ElideRight
263 } 264 }
@@ -272,7 +273,7 @@ Item {
272 } 273 }
273 text: Qt.formatDateTime(model.date, "dd MMM yyyy") 274 text: Qt.formatDateTime(model.date, "dd MMM yyyy")
274 font.italic: true 275 font.italic: true
275 color: Kirigami.Theme.disabledTextColor 276 color: KubeTheme.Colors.disabledTextColor
276 font.pointSize: 9 277 font.pointSize: 9
277 } 278 }
278 279
@@ -283,7 +284,7 @@ Item {
283 right: parent.right 284 right: parent.right
284 } 285 }
285 text: model.threadSize 286 text: model.threadSize
286 color: model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.disabledTextColor 287 color: model.unread ? KubeTheme.Colors.highlightColor : KubeTheme.Colors.disabledTextColor
287 visible: model.threadSize > 1 288 visible: model.threadSize > 1
288 } 289 }
289 } 290 }