2 import Sailfish.Silica 1.0
3 import "functions.js" as Functions
8 allowedOrientations: Orientation.All
13 contentHeight: column.height
14 VerticalScrollDecorator { flickable: flickable }
18 anchors.left: parent.left
19 anchors.right: parent.right
20 anchors.leftMargin: Theme.paddingLarge
21 anchors.rightMargin: Theme.paddingLarge
23 PageHeader { title: qsTr("Settings") }
27 text: qsTr("Show folders first")
31 text: qsTr("Show hidden files")
37 text: qsTr("About File Browser")
38 anchors.left: parent.left
39 anchors.right: parent.right
40 anchors.rightMargin: Theme.paddingLarge
41 horizontalAlignment: Text.AlignRight
42 color: Theme.highlightColor
46 anchors.left: parent.left
47 anchors.right: parent.right
48 anchors.leftMargin: Theme.paddingLarge
49 anchors.rightMargin: Theme.paddingLarge
52 text: qsTr("Version")+" "
53 font.pixelSize: Theme.fontSizeExtraSmall
54 color: Theme.secondaryColor
57 text: "1.4.1" // Version number must be changed manually!
58 font.pixelSize: Theme.fontSizeExtraSmall
59 color: Theme.highlightColor
64 anchors.left: parent.left
65 anchors.right: parent.right
66 anchors.leftMargin: Theme.paddingLarge
67 anchors.rightMargin: Theme.paddingLarge
68 text: "File Browser is free and unencumbered software released "+
69 "into the public domain.\nRead full text >>"
71 font.pixelSize: Theme.fontSizeExtraSmall
72 color: Theme.primaryColor
76 onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
82 anchors.left: parent.left
83 anchors.right: parent.right
84 anchors.leftMargin: Theme.paddingLarge
85 anchors.rightMargin: Theme.paddingLarge
86 text: qsTr("The source code is available at\nhttps://github.com/karip/harbour-file-browser")
88 font.pixelSize: Theme.fontSizeTiny
89 color: Theme.secondaryColor
96 if (status === PageStatus.Activating)
97 coverPlaceholder.text = qsTr("Settings");
100 if (status === PageStatus.Activating) {
101 showDirsFirst.checked = (engine.readSetting("show-dirs-first") === "true");
102 showHiddenFiles.checked = (engine.readSetting("show-hidden-files") === "true");
106 if (status === PageStatus.Deactivating) {
107 engine.writeSetting("show-dirs-first", showDirsFirst.checked.toString());
108 engine.writeSetting("show-hidden-files", showHiddenFiles.checked.toString());