From 4dea0dc97524a7489a0f838af9ef4ba4c2835a8f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 8 Nov 2015 21:01:50 +0100 Subject: add colorpalette and unit --- .../kmail-quick/package/contents/ui/main.qml | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'applications/kmail-quick/package/contents/ui/main.qml') 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 { FolderListView { id: folderList - width: unit.width * 100 - Layout.maximumWidth: unit.width * 200 - Layout.minimumWidth: unit.width * 50 - - color: "green" + width: unit.size * 55 + Layout.maximumWidth: unit.size * 150 + Layout.minimumWidth: unit.size * 30 } MailListView { id: mailList - width: unit.width * 150 - Layout.maximumWidth: unit.width * 300 - Layout.minimumWidth: unit.width * 50 - - color: "red" + width: unit.size * 80 + Layout.maximumWidth: unit.size * 250 + Layout.minimumWidth: unit.size * 50 } SingleMailView { id: mailView Layout.fillWidth: true - - color: "blue" } } //TODO find a better way to scale UI - Label { + Item { id: unit - text: " " + property int size: 5 + } + + ColorPalette { + id: colorPalette } } -- cgit v1.2.3