-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
247 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"translation_catalog" : "harbour-foilpics", | ||
"entries": [ | ||
{ | ||
"path": "applications/harbour-foilpics.desktop", | ||
"title": "Foil Pics", | ||
"type": "page", | ||
"icon": "harbour-foilpics", | ||
"params": { | ||
"source": "/usr/share/harbour-foilpics/qml/settings/settings.qml" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
import org.nemomobile.configuration 1.0 | ||
|
||
Page { | ||
readonly property string rootPath: "/apps/harbour-foilpics/" | ||
property alias title: pageHeader.title | ||
|
||
// jolla-settings expects these properties: | ||
property var applicationName | ||
property var applicationIcon | ||
|
||
SilicaFlickable { | ||
anchors.fill: parent | ||
contentHeight: content.height | ||
|
||
Column { | ||
id: content | ||
width: parent.width | ||
|
||
PageHeader { | ||
id: pageHeader | ||
|
||
rightMargin: Theme.horizontalPageMargin + (appIcon.visible ? (height - appIcon.padding) : 0) | ||
title: applicationName ? applicationName : "Foil Pics" | ||
description: applicationName ? | ||
//: Settings page header description (app version) | ||
//% "Version %1" | ||
qsTrId("foilpics-settings_page-header-version").arg("1.1.0") : "" | ||
|
||
Image { | ||
id: appIcon | ||
readonly property int padding: Theme.paddingLarge | ||
readonly property int size: pageHeader.height - 2 * padding | ||
x: pageHeader.width - width - Theme.horizontalPageMargin | ||
y: padding | ||
width: size | ||
height: size | ||
sourceSize: Qt.size(size,size) | ||
source: applicationIcon ? applicationIcon : "" | ||
visible: appIcon.status === Image.Ready | ||
} | ||
} | ||
|
||
TextSwitch { | ||
//: Text switch label | ||
//% "Automatic locking" | ||
text: qsTrId("foilpics-settings_page-autolock-text") | ||
//: Text switch description | ||
//% "Require to enter Foil password after unlocking the screen." | ||
description: qsTrId("foilpics-settings_page-autolock-description") | ||
automaticCheck: false | ||
checked: autoLockConfig.value | ||
onClicked: autoLockConfig.value = !autoLockConfig.value | ||
|
||
ConfigurationValue { | ||
id: autoLockConfig | ||
|
||
key: rootPath + "autoLock" | ||
defaultValue: true | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.