//scale: 1.25;
transformOrigin: Item.TopLeft
scale: slider.value;
- //settings.defaultFontSize: 24
+ settings.defaultFontSize: articleView.webviewFontSize
}
// onFlickStarted: {
ListView {
id: articleView;
+ property int webviewFontSize: settings.webviewFontSize
model: articles;
delegate: viewer
orientation: ListView.Horizontal
property bool autoUpdateEnabled: controller.getBooleanSetting("autoupdate")
- property int articleListingTextSize: 16
+ property int articleListingTextSize: controller.getIntSetting("fontSize")
+ property int webviewFontSize: controller.getIntSetting("artFontSize")
Component.onCompleted: {
theme.inverted = controller.getBooleanSetting("theme")
Column {
width: parent.width
+ spacing: 5
SwitchSetting {
text: qsTr("Use Dark Theme")
settings.autoUpdateEnabled = checked
}
}
+
+ SliderSetting {
+ text: qsTr("Article Listing Font Size")
+ value: settings.articleListingTextSize
+ onValueChanged: {
+ controller.setIntSetting("fontSize", value)
+ settings.articleListingTextSize = value
+
+ }
+ }
+
+ SliderSetting {
+ text: qsTr("Article Font Size")
+ value: settings.webviewFontSize
+ onValueChanged: {
+ controller.setIntSetting("artFontSize", value)
+ settings.webviewFontSize = value
+ }
+ }
}
}
--- /dev/null
+import QtQuick 1.0
+import com.nokia.meego 1.0
+
+Row {
+ width: parent.width
+ property alias text: themeText.text
+ property alias value: mySlider.value
+ signal valueChanged()
+
+ Text {
+ id: themeText
+ color: settings.mainTextColour;
+ font.pointSize: settings.mainTextSize
+ width: parent.width - mySlider.width
+ wrapMode: Text.WordWrap;
+ }
+
+ Slider {
+ id:mySlider
+ stepSize:1
+ valueIndicatorVisible: true
+ minimumValue:12
+ maximumValue:30
+ width:300
+ onPressedChanged: if (!pressed) { parent.valueChanged() }
+ orientation: Qt.Horizontal
+ }
+}