From 28bb9f9ee55b4899204bb9f860f2cda6f90b4806 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 1 Apr 2013 21:03:53 +0200 Subject: improve topic page a bit --- qml/tapasboard/TopicPage.qml | 47 +++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'qml/tapasboard') diff --git a/qml/tapasboard/TopicPage.qml b/qml/tapasboard/TopicPage.qml index d39d36e..9a305f8 100644 --- a/qml/tapasboard/TopicPage.qml +++ b/qml/tapasboard/TopicPage.qml @@ -31,27 +31,38 @@ Page { delegate: Item { id: postItem - height: Math.max(postItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault) + height: postItemRectangle.height + UiConstants.ButtonSpacing * 2 width: parent.width - Column { - id: postItemColumn - anchors.left: parent.left - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - - Text { - text: model.title - width: parent.width - font: UiConstants.TitleFont - visible: text != "" - } + Rectangle { + id: postItemRectangle + width: parent.width + height: postItemColumn.height + UiConstants.DefaultMargin + anchors.centerIn: parent + + color: "white" + radius: 20 + + Column { + id: postItemColumn + anchors.left: parent.left + anchors.right: parent.right + anchors.margins: UiConstants.DefaultMargin + anchors.verticalCenter: parent.verticalCenter + + Text { + text: model.title + width: parent.width + font: UiConstants.TitleFont + visible: text != "" + } - Text { - text: model.content - width: parent.width - font: UiConstants.SubtitleFont - wrapMode: Text.Wrap + Text { + text: model.content + width: parent.width + font: UiConstants.SubtitleFont + wrapMode: Text.Wrap + } } } } -- cgit v1.2.3