a19515b693f340f60d7ca49951548c14612c4b00
[feedingit] / psa_harmattan / feedingit / qml / Settings.qml
1 import Qt 4.7
2 Item {
3     property string mainTextColour: theme.inverted ? "white" : "black"
4     property string mainShadowColour: theme.inverted ? "black" : "white"
5     property int mainTextSize: 18
6     property string secondaryTextColour: theme.inverted?  "#7b97fd" : "#5c71bd"
7     property int secondaryTextSize: 14
8
9     property string backColour: theme.inverted? "#dddddd" : "#222222"
10
11     property bool hideReadFeeds: controller.getBooleanSetting("hideReadFeeds")
12     property bool hideReadArticles: controller.getBooleanSetting("hideReadArticles")
13
14     property bool autoUpdateEnabled: controller.getBooleanSetting("autoupdate")
15
16     property int articleListingTextSize: 16
17
18     Component.onCompleted: {
19         theme.inverted = controller.getBooleanSetting("theme")
20         if (autoUpdateEnabled) {
21             autoUpdate.start()
22         }
23     }
24 }