diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 21:03:53 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 21:03:53 +0200 |
commit | 28bb9f9ee55b4899204bb9f860f2cda6f90b4806 (patch) | |
tree | e2dbfb652785859325cd5f0c0aafd4b2d33709a8 /qml/tapasboard | |
parent | a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9 (diff) | |
download | tapasboard-28bb9f9ee55b4899204bb9f860f2cda6f90b4806.tar.gz tapasboard-28bb9f9ee55b4899204bb9f860f2cda6f90b4806.zip |
improve topic page a bit
Diffstat (limited to 'qml/tapasboard')
-rw-r--r-- | qml/tapasboard/TopicPage.qml | 47 |
1 files changed, 29 insertions, 18 deletions
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 + } } } } |