diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
commit | f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 (patch) | |
tree | 0401716e7af8be4318be1b9e88eca1cc8ad28d39 /notificationswatchlet/metawatch-digital.qml | |
parent | 1b8f2a0e2e63b1f881b6ba7b18982353b9c27b19 (diff) | |
download | sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.tar.gz sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.zip |
more fixes
Diffstat (limited to 'notificationswatchlet/metawatch-digital.qml')
-rw-r--r-- | notificationswatchlet/metawatch-digital.qml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/notificationswatchlet/metawatch-digital.qml b/notificationswatchlet/metawatch-digital.qml index 1e97052..9129226 100644 --- a/notificationswatchlet/metawatch-digital.qml +++ b/notificationswatchlet/metawatch-digital.qml @@ -24,15 +24,24 @@ Rectangle { anchors.bottom: parent.bottom model: watch.notifications delegate: Rectangle { + id: notifDelegate property bool selected: ListView.isCurrentItem width: notifs.width height: childrenRect.height color: ListView.isCurrentItem ? "black" : "white" - MWLabel { - width: 96 - text: "<b>" + model.modelData.title + "</b><br>" + model.modelData.body - wrapMode: Text.WrapAtWordBoundaryOrAnywhere - color: parent.selected ? "white" : "black" + Column { + MWLabel { + width: notifs.width + text: model.modelData.title + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + color: notifDelegate.selected ? "white" : "black" + } + MWSmallLabel { + width: notifs.width + text: model.modelData.body + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + color: notifDelegate.selected ? "white" : "black" + } } } visible: count > 0; |