-
Notifications
You must be signed in to change notification settings - Fork 7
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
13 changed files
with
224 additions
and
26 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-foilnotes", | ||
"entries": [ | ||
{ | ||
"path": "applications/harbour-foilnotes.desktop", | ||
"title": "Foil Auth", | ||
"type": "page", | ||
"icon": "harbour-foilnotes", | ||
"params": { | ||
"source": "/usr/share/harbour-foilnotes/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,67 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
import org.nemomobile.configuration 1.0 | ||
|
||
Page { | ||
property alias title: pageHeader.title | ||
|
||
// jolla-settings expects these properties: | ||
property var applicationName | ||
property var applicationIcon | ||
|
||
readonly property string _rootPath: "/apps/harbour-foilnotes/" | ||
|
||
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 Notes" | ||
description: applicationName ? | ||
//: Settings page header description (app version) | ||
//% "Version %1" | ||
qsTrId("foilnotes-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("foilnotes-settings_page-autolock-text") | ||
//: Text switch description | ||
//% "Require to enter Foil password after unlocking the screen." | ||
description: qsTrId("foilnotes-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2018-2019 Jolla Ltd. | ||
* Copyright (C) 2018-2019 Slava Monich <[email protected]> | ||
* Copyright (C) 2018-2023 Slava Monich <[email protected]> | ||
* | ||
* You may use this file under the terms of the BSD license as follows: | ||
* | ||
|
@@ -11,8 +11,8 @@ | |
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in | ||
* the documentation and/or other materials provided with the | ||
* notice, this list of conditions and the following disclaimer | ||
* in the documentation and/or other materials provided with the | ||
* distribution. | ||
* 3. Neither the names of the copyright holders nor the names of its | ||
* contributors may be used to endorse or promote products derived | ||
|
@@ -36,12 +36,7 @@ | |
|
||
#include <qnamespace.h> | ||
|
||
#ifdef OPENREPOS | ||
# define FOILNOTES_APP_NAME "openrepos-foilnotes" | ||
#else | ||
# define FOILNOTES_APP_NAME "harbour-foilnotes" | ||
#endif | ||
|
||
#define FOILNOTES_APP_NAME "harbour-foilnotes" | ||
#define FOILNOTES_QML_IMPORT "harbour.foilnotes" | ||
#define FOILNOTES_DCONF_ROOT "/apps/" FOILNOTES_APP_NAME "/" | ||
|
||
|
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