summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 14:45:42 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 14:45:42 +0100
commitced0c73f7e5b8da83a0b5f51bf6220fb04c33cbf (patch)
tree748aca3ddd0b2170427d4f5a47c65090bd193aaf /components
parentd8e13159711576394099f8954368aeb9da7fa87a (diff)
parent1f1dbdf5af1af9a83d74113bbdf4132271d6ca51 (diff)
downloadkube-ced0c73f7e5b8da83a0b5f51bf6220fb04c33cbf.tar.gz
kube-ced0c73f7e5b8da83a0b5f51bf6220fb04c33cbf.zip
Merge branch 'develop' of git://anongit.kde.org/kube into develop
Diffstat (limited to 'components')
-rw-r--r--components/mail/contents/ui/main.qml23
-rw-r--r--components/package/contents/ui/ColorPalette.qml26
-rw-r--r--components/package/contents/ui/Composer.qml10
-rw-r--r--components/package/contents/ui/FocusComposer.qml10
-rw-r--r--components/package/contents/ui/FolderListView.qml9
-rw-r--r--components/package/contents/ui/ListItem.qml5
-rw-r--r--components/package/contents/ui/MailListView.qml18
-rw-r--r--components/package/contents/ui/Settings.qml7
-rw-r--r--components/package/contents/ui/SingleMailView.qml3
-rw-r--r--components/qmldir1
10 files changed, 41 insertions, 71 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 8f2d3c52..d864f2fc 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -22,6 +22,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
22 22
23import org.kube.framework.actions 1.0 as KubeAction 23import org.kube.framework.actions 1.0 as KubeAction
24import org.kube.framework.settings 1.0 as KubeSettings 24import org.kube.framework.settings 1.0 as KubeSettings
25import org.kube.framework.theme 1.0
25import org.kube.components 1.0 as KubeComponents 26import org.kube.components 1.0 as KubeComponents
26 27
27ApplicationWindow { 28ApplicationWindow {
@@ -154,17 +155,17 @@ ApplicationWindow {
154 155
155 KubeComponents.FolderListView { 156 KubeComponents.FolderListView {
156 id: folderListView 157 id: folderListView
157 width: unit.size * 55 158 width: Unit.size * 55
158 Layout.maximumWidth: unit.size * 150 159 Layout.maximumWidth: Unit.size * 150
159 Layout.minimumWidth: unit.size * 30 160 Layout.minimumWidth: Unit.size * 30
160 } 161 }
161 162
162 KubeComponents.MailListView { 163 KubeComponents.MailListView {
163 id: mailListView 164 id: mailListView
164 parentFolder: folderListView.currentFolder 165 parentFolder: folderListView.currentFolder
165 width: unit.size * 80 166 width: Unit.size * 80
166 Layout.maximumWidth: unit.size * 250 167 Layout.maximumWidth: Unit.size * 250
167 Layout.minimumWidth: unit.size * 50 168 Layout.minimumWidth: Unit.size * 50
168 focus: true 169 focus: true
169 } 170 }
170 171
@@ -187,15 +188,5 @@ ApplicationWindow {
187 188
188 anchors.fill: parent 189 anchors.fill: parent
189 } 190 }
190
191 //TODO find a better way to scale UI
192 Item {
193 id: unit
194 property int size: 5
195 }
196
197 KubeComponents.ColorPalette {
198 id: colorPalette
199 }
200} 191}
201 192
diff --git a/components/package/contents/ui/ColorPalette.qml b/components/package/contents/ui/ColorPalette.qml
deleted file mode 100644
index db85cac6..00000000
--- a/components/package/contents/ui/ColorPalette.qml
+++ /dev/null
@@ -1,26 +0,0 @@
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/components/package/contents/ui/Composer.qml b/components/package/contents/ui/Composer.qml
index 01991b67..c16bf582 100644
--- a/components/package/contents/ui/Composer.qml
+++ b/components/package/contents/ui/Composer.qml
@@ -97,7 +97,7 @@ Item {
97 } 97 }
98 } 98 }
99 99
100 PlasmaComponents.Button { 100 Button {
101 id: ccButton 101 id: ccButton
102 102
103 text: "Cc" 103 text: "Cc"
@@ -108,7 +108,7 @@ Item {
108 } 108 }
109 } 109 }
110 110
111 PlasmaComponents.Button { 111 Button {
112 id: bccButton 112 id: bccButton
113 113
114 text: "Bcc" 114 text: "Bcc"
@@ -181,7 +181,7 @@ Item {
181 181
182 height: subject.height * 1.5 182 height: subject.height * 1.5
183 183
184 PlasmaComponents.Button { 184 Button {
185 185
186 anchors { 186 anchors {
187 bottom: parent.bottom 187 bottom: parent.bottom
@@ -194,7 +194,7 @@ Item {
194 } 194 }
195 } 195 }
196 196
197 PlasmaComponents.Button { 197 Button {
198 198
199 anchors { 199 anchors {
200 bottom: parent.bottom 200 bottom: parent.bottom
@@ -217,7 +217,7 @@ Item {
217 217
218 model: composer.attachments 218 model: composer.attachments
219 219
220 delegate: PlasmaComponents.Label { 220 delegate: Label {
221 id: name 221 id: name
222 222
223 text: modelData 223 text: modelData
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml
index 8ec01cc9..ab04dbed 100644
--- a/components/package/contents/ui/FocusComposer.qml
+++ b/components/package/contents/ui/FocusComposer.qml
@@ -19,13 +19,15 @@ import QtQuick 2.4
19import QtQuick.Controls 1.4 19import QtQuick.Controls 1.4
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21 21
22import org.kube.framework.theme 1.0
23
22Rectangle { 24Rectangle {
23 id: root 25 id: root
24 property variant originalMessage 26 property variant originalMessage
25 27
26 visible: false 28 visible: false
27 29
28 color: colorPalette.border 30 color: ColorPalette.border
29 31
30 opacity: 0.9 32 opacity: 0.9
31 33
@@ -43,7 +45,7 @@ Rectangle {
43 height: root.height * 0.8 45 height: root.height * 0.8
44 width: root.width * 0.8 46 width: root.width * 0.8
45 47
46 color: colorPalette.background 48 color: ColorPalette.background
47 49
48 MouseArea { 50 MouseArea {
49 anchors.fill: parent 51 anchors.fill: parent
@@ -53,7 +55,7 @@ Rectangle {
53 55
54 anchors { 56 anchors {
55 fill: parent 57 fill: parent
56 margins: unit.size * 3 58 margins: Unit.size * 3
57 } 59 }
58 60
59 Composer { 61 Composer {
@@ -78,4 +80,4 @@ Rectangle {
78 } 80 }
79 } 81 }
80 } 82 }
81} \ No newline at end of file 83}
diff --git a/components/package/contents/ui/FolderListView.qml b/components/package/contents/ui/FolderListView.qml
index d78531a2..fafc1623 100644
--- a/components/package/contents/ui/FolderListView.qml
+++ b/components/package/contents/ui/FolderListView.qml
@@ -24,6 +24,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
24import org.kde.plasma.components 2.0 as PlasmaComponents 24import org.kde.plasma.components 2.0 as PlasmaComponents
25 25
26import org.kube.framework.domain 1.0 as KubeFramework 26import org.kube.framework.domain 1.0 as KubeFramework
27import org.kube.framework.theme 1.0
27 28
28Item { 29Item {
29 id: root 30 id: root
@@ -34,7 +35,7 @@ Item {
34 id: searchBox 35 id: searchBox
35 36
36 width: root.width 37 width: root.width
37 height: unit.size * 10 38 height: Unit.size * 10
38 39
39 TextField { 40 TextField {
40 anchors. centerIn: parent 41 anchors. centerIn: parent
@@ -68,7 +69,7 @@ Item {
68 style: TreeViewStyle { 69 style: TreeViewStyle {
69 activateItemOnSingleClick: true 70 activateItemOnSingleClick: true
70 rowDelegate: Rectangle { 71 rowDelegate: Rectangle {
71 height: unit.size * 10 72 height: Unit.size * 10
72 color: "transparent" 73 color: "transparent"
73 } 74 }
74 itemDelegate: Rectangle { 75 itemDelegate: Rectangle {
@@ -81,7 +82,7 @@ Item {
81 anchors { 82 anchors {
82 verticalCenter: parent.verticalCenter 83 verticalCenter: parent.verticalCenter
83 left: parent.left 84 left: parent.left
84 leftMargin: unit.size * 3 85 leftMargin: Unit.size * 3
85 } 86 }
86 source: model.icon 87 source: model.icon
87 } 88 }
@@ -89,7 +90,7 @@ Item {
89 anchors { 90 anchors {
90 verticalCenter: parent.verticalCenter 91 verticalCenter: parent.verticalCenter
91 left: iconItem.right 92 left: iconItem.right
92 leftMargin: unit.size * 3 93 leftMargin: Unit.size * 3
93 } 94 }
94 renderType: Text.NativeRendering 95 renderType: Text.NativeRendering
95 text: styleData.value 96 text: styleData.value
diff --git a/components/package/contents/ui/ListItem.qml b/components/package/contents/ui/ListItem.qml
index 5396645d..bea3c11b 100644
--- a/components/package/contents/ui/ListItem.qml
+++ b/components/package/contents/ui/ListItem.qml
@@ -16,13 +16,14 @@
16 */ 16 */
17 17
18import QtQuick 2.4 18import QtQuick 2.4
19import org.kube.framework.theme 1.0
19 20
20Item { 21Item {
21 id: delegateRoot 22 id: delegateRoot
22 23
23 readonly property bool isCurrentItem: ListView.isCurrentItem 24 readonly property bool isCurrentItem: ListView.isCurrentItem
24 25
25 height: unit.width * 25 26 height: Unit.width * 25
26 width: parent.width 27 width: parent.width
27 28
28 MouseArea { 29 MouseArea {
@@ -60,4 +61,4 @@ Item {
60 opacity: 0.2 61 opacity: 0.2
61 } 62 }
62 } 63 }
63} \ No newline at end of file 64}
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index 8b612c52..e7fc634f 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -24,6 +24,7 @@ import QtQml 2.2
24import org.kde.plasma.components 2.0 as PlasmaComponents 24import org.kde.plasma.components 2.0 as PlasmaComponents
25 25
26import org.kube.framework.domain 1.0 as KubeFramework 26import org.kube.framework.domain 1.0 as KubeFramework
27import org.kube.framework.theme 1.0
27 28
28ScrollView { 29ScrollView {
29 id: root 30 id: root
@@ -47,7 +48,7 @@ ScrollView {
47 48
48 delegate: PlasmaComponents.ListItem { 49 delegate: PlasmaComponents.ListItem {
49 width: listView.width 50 width: listView.width
50 height: unit.size * 12 51 height: Unit.size * 12
51 52
52 enabled: true 53 enabled: true
53 checked: listView.currentIndex == index 54 checked: listView.currentIndex == index
@@ -72,7 +73,6 @@ ScrollView {
72 73
73 anchors.fill: parent 74 anchors.fill: parent
74 75
75 // color: colorPalette.read
76 color: "steelblue" 76 color: "steelblue"
77 opacity: 0.1 77 opacity: 0.1
78 78
@@ -85,10 +85,10 @@ ScrollView {
85 anchors { 85 anchors {
86 verticalCenter: parent.verticalCenter 86 verticalCenter: parent.verticalCenter
87 left: parent.left 87 left: parent.left
88 leftMargin: unit.size * 2 88 leftMargin: Unit.size * 2
89 } 89 }
90 90
91 height: unit.size * 9 91 height: Unit.size * 9
92 width: height 92 width: height
93 93
94 name: model.senderName 94 name: model.senderName
@@ -100,7 +100,7 @@ ScrollView {
100 anchors { 100 anchors {
101 top: avatar.top 101 top: avatar.top
102 left: avatar.right 102 left: avatar.right
103 leftMargin: unit.size * 3 103 leftMargin: Unit.size * 3
104 } 104 }
105 105
106 text: model.senderName 106 text: model.senderName
@@ -115,9 +115,9 @@ ScrollView {
115 // anchors { 115 // anchors {
116 // top: avatar.top 116 // top: avatar.top
117 // left: senderName.right 117 // left: senderName.right
118 // leftMargin: unit.size 118 // leftMargin: Unit.size
119 // right: date.left 119 // right: date.left
120 // rightMargin: unit.size 120 // rightMargin: Unit.size
121 // } 121 // }
122 // 122 //
123 // text: "(" + model.sender +")" 123 // text: "(" + model.sender +")"
@@ -131,7 +131,7 @@ ScrollView {
131 anchors { 131 anchors {
132 top: avatar.top 132 top: avatar.top
133 right: parent.right 133 right: parent.right
134 rightMargin: unit.size * 2 134 rightMargin: Unit.size * 2
135 } 135 }
136 136
137 text: Qt.formatDateTime(model.date) 137 text: Qt.formatDateTime(model.date)
@@ -145,7 +145,7 @@ ScrollView {
145 anchors { 145 anchors {
146 bottom: avatar.bottom 146 bottom: avatar.bottom
147 left: avatar.right 147 left: avatar.right
148 leftMargin: unit.size * 3 148 leftMargin: Unit.size * 3
149 } 149 }
150 150
151 text: model.subject 151 text: model.subject
diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml
index 1f5fc972..8da372e7 100644
--- a/components/package/contents/ui/Settings.qml
+++ b/components/package/contents/ui/Settings.qml
@@ -23,13 +23,14 @@ import org.kde.plasma.core 2.0 as PlasmaCore
23 23
24import org.kube.framework.settings 1.0 as KubeSettings 24import org.kube.framework.settings 1.0 as KubeSettings
25import org.kube.framework.domain 1.0 as KubeFramework 25import org.kube.framework.domain 1.0 as KubeFramework
26import org.kube.framework.theme 1.0
26 27
27Rectangle { 28Rectangle {
28 id: root 29 id: root
29 30
30 visible: false 31 visible: false
31 32
32 color: colorPalette.border 33 color: ColorPalette.border
33 34
34 opacity: 0.9 35 opacity: 0.9
35 36
@@ -47,7 +48,7 @@ Rectangle {
47 height: root.height * 0.8 48 height: root.height * 0.8
48 width: root.width * 0.8 49 width: root.width * 0.8
49 50
50 color: colorPalette.background 51 color: ColorPalette.background
51 52
52 MouseArea { 53 MouseArea {
53 anchors.fill: parent 54 anchors.fill: parent
@@ -78,7 +79,7 @@ Rectangle {
78 anchors { 79 anchors {
79 verticalCenter: parent.verticalCenter 80 verticalCenter: parent.verticalCenter
80 left: parent.left 81 left: parent.left
81 // leftMargin: unit.size * 3 82 // leftMargin: Unit.size * 3
82 } 83 }
83 source: accountFactory.icon 84 source: accountFactory.icon
84 } 85 }
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml
index ff48a9d3..4b801a89 100644
--- a/components/package/contents/ui/SingleMailView.qml
+++ b/components/package/contents/ui/SingleMailView.qml
@@ -20,6 +20,7 @@ import QtQuick.Controls 1.3
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21 21
22import org.kube.framework.domain 1.0 as KubeFramework 22import org.kube.framework.domain 1.0 as KubeFramework
23import org.kube.framework.theme 1.0
23 24
24Item { 25Item {
25 id: root 26 id: root
@@ -30,7 +31,7 @@ Item {
30 31
31 anchors.fill: parent 32 anchors.fill: parent
32 33
33 color: colorPalette.background 34 color: ColorPalette.background
34 } 35 }
35 36
36 Repeater { 37 Repeater {
diff --git a/components/qmldir b/components/qmldir
index 204beff8..e9a70bc5 100644
--- a/components/qmldir
+++ b/components/qmldir
@@ -1,6 +1,5 @@
1module org.kube.components 1module org.kube.components
2 2
3ColorPalette 1.0 ColorPalette.qml
4FocusComposer 1.0 FocusComposer.qml 3FocusComposer 1.0 FocusComposer.qml
5SingleMailView 1.0 SingleMailView.qml 4SingleMailView 1.0 SingleMailView.qml
6FolderListView 1.0 FolderListView.qml 5FolderListView 1.0 FolderListView.qml