summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-11-08 21:01:50 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-11-08 21:01:50 +0100
commit4dea0dc97524a7489a0f838af9ef4ba4c2835a8f (patch)
treed3f074f232bc7d23cd5a0b928effd5603324e007
parentf5fa599274bfcbbb3434c74874160b1d36531383 (diff)
downloadkube-4dea0dc97524a7489a0f838af9ef4ba4c2835a8f.tar.gz
kube-4dea0dc97524a7489a0f838af9ef4ba4c2835a8f.zip
add colorpalette and unit
-rw-r--r--applications/kmail-quick/package/contents/ui/ColorPalette.qml26
-rw-r--r--applications/kmail-quick/package/contents/ui/main.qml26
2 files changed, 38 insertions, 14 deletions
diff --git a/applications/kmail-quick/package/contents/ui/ColorPalette.qml b/applications/kmail-quick/package/contents/ui/ColorPalette.qml
new file mode 100644
index 00000000..db85cac6
--- /dev/null
+++ b/applications/kmail-quick/package/contents/ui/ColorPalette.qml
@@ -0,0 +1,26 @@
1/*
2 * Copyright (C) 2015 Michael Bohlender <michael.bohlender@kdemail.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18import QtQuick 2.4
19
20//TODO probably expose it from the Cpp side
21Item {
22 property string background: "#fcfcfc"
23 property string selected: "#3daee9"
24 property string read: "#232629"
25 property string border: "#232629"
26} \ No newline at end of file
diff --git a/applications/kmail-quick/package/contents/ui/main.qml b/applications/kmail-quick/package/contents/ui/main.qml
index 75e781fc..4d53aa08 100644
--- a/applications/kmail-quick/package/contents/ui/main.qml
+++ b/applications/kmail-quick/package/contents/ui/main.qml
@@ -39,37 +39,35 @@ ApplicationWindow {
39 FolderListView { 39 FolderListView {
40 id: folderList 40 id: folderList
41 41
42 width: unit.width * 100 42 width: unit.size * 55
43 Layout.maximumWidth: unit.width * 200 43 Layout.maximumWidth: unit.size * 150
44 Layout.minimumWidth: unit.width * 50 44 Layout.minimumWidth: unit.size * 30
45
46 color: "green"
47 } 45 }
48 46
49 MailListView { 47 MailListView {
50 id: mailList 48 id: mailList
51 49
52 width: unit.width * 150 50 width: unit.size * 80
53 Layout.maximumWidth: unit.width * 300 51 Layout.maximumWidth: unit.size * 250
54 Layout.minimumWidth: unit.width * 50 52 Layout.minimumWidth: unit.size * 50
55
56 color: "red"
57 } 53 }
58 54
59 SingleMailView { 55 SingleMailView {
60 id: mailView 56 id: mailView
61 57
62 Layout.fillWidth: true 58 Layout.fillWidth: true
63
64 color: "blue"
65 } 59 }
66 } 60 }
67 61
68 //TODO find a better way to scale UI 62 //TODO find a better way to scale UI
69 Label { 63 Item {
70 id: unit 64 id: unit
71 65
72 text: " " 66 property int size: 5
67 }
68
69 ColorPalette {
70 id: colorPalette
73 } 71 }
74} 72}
75 73