psa: implemented settings
[feedingit] / psa_harmattan / feedingit / qml / ArticleViewer.qml
index 83898b4..f974ddb 100644 (file)
@@ -108,16 +108,25 @@ Item {
             id: listing;
 
             Item {
-                width: articleViewer.width; height: 86
+                width: articleViewer.width; height: backRect.height + 3
                 id: listItem
-                Rectangle { id: backRect; color: "#dddddd"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: listItem.width; y: 1 }
+
+                Rectangle {
+                    id: backRect; color: settings.backColour; opacity: index % 2 ? 0.2 : 0.4;
+                    height: articleText.height + 22; width: listItem.width;
+                    y: 1
+                }
                 Text {
-                    anchors.fill: backRect
+                    id: articleText
+                    anchors.verticalCenter: backRect.verticalCenter
+                    x: 3
+                    width: listItem.width - 6;
+
                     anchors.margins: 5
                     verticalAlignment: Text.AlignVCenter; text: title;
-                    color: (unread=="True") ? "white" : "#7b97fd";
+                    color: (unread=="True") ? settings.mainTextColour : settings.secondaryTextColour;
 
-                    width: listItem.width; wrapMode: Text.WordWrap; font.bold: false;
+                     wrapMode: Text.WordWrap; font.bold: false;
                     font.pointSize: 18
                 }
                 MouseArea { anchors.fill: listItem;