/*
-@version: 0.4
+@version: 0.5
@author: Sudheer K. <scifi1947 at gmail.com>
@license: GNU General Public License
*/
property bool updateFreqEnabled
property string updateFreqMin
property bool updateWeekdaysOnly
+ property int fontSizeMed: 24
+ property int fontSizeSmall: 20
+
//property bool updateOnSavedNetworksOnly
property string rssURL: "http://finance.yahoo.com/rss/topfinstories"
signal logRequest(string strMessage)
function loadSettings(){
var value;
value = DBUtility.getSetting("UpdateFreqency");
- if (!value || value == "0.0" || value === "" || isNaN(value)){
+ if (!value || value === "0.0" || value === "" || isNaN(value)){
configParametersComponent.updateFreqEnabled = false;
}
else{
configParametersComponent.updateFreqMin = parseInt(value);
}
value = DBUtility.getSetting("UpdateWeekdaysOnly");
- if (!value || value == "0.0" || value === ""|| !configParametersComponent.updateFreqEnabled){
+ if (!value || value === "0.0" || value === ""|| !configParametersComponent.updateFreqEnabled){
configParametersComponent.updateWeekdaysOnly = false;
}
else{
*/
value = DBUtility.getSetting("RSSURL");
- if (!value || value == "Unknown" || value === ""){
+ if (!value || value === "Unknown" || value === ""){
//configParametersComponent.rssURL = configParametersComponent.defaultRSSFeed;
}
else{
anchors.leftMargin: 35
height: 50
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 22; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeMed; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black"
text: "News Feed"
}
Text{
height:parent.height
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
text: "RSS URL: "
color: "#ffffff";
}
Text {
id: autoUpdateSectionLabel
anchors.top: newsSection.bottom
- //anchors.topMargin: 10
+ anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: 35
height: 50
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 22; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeMed; font.bold: true; elide: Text.ElideRight; color: "#B8B8B8"; style: Text.Raised; styleColor: "black"
text: "Auto-Update *"
}
Text{
height:parent.height
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
text: "Every "
color: configParametersComponent.updateFreqEnabled? "#ffffff" :"#B8B8B8";
}
Text{
height:parent.height
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
text: " minutes"
color: configParametersComponent.updateFreqEnabled? "#ffffff" :"#B8B8B8";
}
Text{
height:parent.height
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
text: "Only on weekdays"
color: configParametersComponent.updateWeekdaysOnly? "#ffffff" :"#B8B8B8";
}
Text{
height:parent.height
horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
- font.pixelSize: 20; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+ font.pixelSize: fontSizeSmall; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
text: "Only on saved Wifi connections"
color: configParametersComponent.updateOnSavedNetworksOnly? "#ffffff" :"#B8B8B8";
}