summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/main.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-03-10 13:54:07 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-03-10 13:54:07 +0100
commit181b39ddd0b3c027341b228ab51482ce4413d3bb (patch)
treedf740e3d4b31e1b9ffe52772aa9dc23aa3176a95 /components/mail/contents/ui/main.qml
parent73b2621624c87528ce776b74555ec98c56115661 (diff)
downloadkube-181b39ddd0b3c027341b228ab51482ce4413d3bb.tar.gz
kube-181b39ddd0b3c027341b228ab51482ce4413d3bb.zip
add scaling unit to the theme plugin and use it instaed of the main.qml unit item
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r--components/mail/contents/ui/main.qml19
1 files changed, 7 insertions, 12 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 181174d2..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,11 +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} 191}
197 192