Modified font colors for change column
[marketstoday] / src / qml / MarketsTodayWidget.qml
index 7e34ce7..c3327b1 100644 (file)
@@ -136,10 +136,10 @@ Item {
                             width: parent.width * 20/100; height: parent.height
                             spacing: 2
                             Text { text: change; font.pixelSize: 16; elide: Text.ElideRight
-                                color: if(change >= 0){"green";} else {"red";}
+                                color: change >= 0 ? "#00ff00":"#ff0000";
                                     style: Text.Raised; styleColor: "black" }
                             Text { text: changePercentage; font.pixelSize: 16; elide: Text.ElideRight;
-                                color: if(change >= 0){"green";} else {"red";}
+                                color: change >= 0 ? "#00ff00":"#ff0000";
                                     style: Text.Raised; styleColor: "black" }
                         }
                         Text { text: volume; width: parent.width * 30/100; font.pixelSize: 18; verticalAlignment:Text.AlignVCenter; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }