adc56af7facab506dbb763eb76eb8b6b25ac9c33
[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     Component.onCompleted: {
17         theme.inverted = controller.getBooleanSetting("theme")
18         if (autoUpdateEnabled) {
19             autoUpdate.start()
20         }
21     }
22 }