improved about page
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
|
@ -1,21 +1,9 @@
|
|||
/*
|
||||
Copyright (C) 2014-2019 Michal Kosciesza <michal@mkiol.net>
|
||||
|
||||
This file is part of Kaktus.
|
||||
|
||||
Kaktus is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Kaktus is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Kaktus. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/* Copyright (C) 2014-2022 Michal Kosciesza <michal@mkiol.net>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
|
|
@ -23,7 +11,7 @@ import Sailfish.Silica 1.0
|
|||
Page {
|
||||
id: root
|
||||
|
||||
property bool showBar: false
|
||||
readonly property bool showBar: false
|
||||
|
||||
allowedOrientations: {
|
||||
switch (settings.allowedOrientations) {
|
||||
|
|
@ -52,12 +40,14 @@ Page {
|
|||
spacing: Theme.paddingLarge
|
||||
|
||||
PageHeader {
|
||||
title: qsTr("About")
|
||||
title: qsTr("About %1").arg(APP_NAME)
|
||||
}
|
||||
|
||||
Image {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
source: "image://icons/icon-i-kaktus"
|
||||
height: root.isPortrait ? Theme.itemSizeHuge : Theme.iconSizeLarge
|
||||
width: root.isPortrait ? Theme.itemSizeHuge : Theme.iconSizeLarge
|
||||
source: settings.appIcon()
|
||||
}
|
||||
|
||||
InfoLabel {
|
||||
|
|
@ -71,16 +61,17 @@ Page {
|
|||
text: qsTr("Version %1").arg(APP_VERSION);
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("Changelog")
|
||||
Flow {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("ChangelogPage.qml"))
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("Project website")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: Qt.openUrlExternally(PAGE)
|
||||
spacing: Theme.paddingLarge
|
||||
Button {
|
||||
text: qsTr("Project website")
|
||||
onClicked: Qt.openUrlExternally(PAGE)
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Changes")
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("ChangelogPage.qml"))
|
||||
}
|
||||
}
|
||||
|
||||
SectionHeader {
|
||||
|
|
@ -105,16 +96,23 @@ Page {
|
|||
|
||||
PaddedLabel {
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
text: qsTr("Translations are provided by:")
|
||||
textFormat: Text.StyledText
|
||||
text: qsTr("%1 is developed as an open source project under %2.")
|
||||
.arg(APP_NAME)
|
||||
.arg("<a href=\"" + LICENSE_URL + "\">" + LICENSE + "</a>")
|
||||
}
|
||||
|
||||
SectionHeader {
|
||||
text: qsTr("Translators")
|
||||
}
|
||||
|
||||
PaddedLabel {
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
text: "Nathan Follens \nFri \nJozef Mlích \nCarmen Fernández B. " +
|
||||
"\nGökhan Kalayci \nFallaffel Box \nBenjamin (schnubbbi) \nR.G. Sidler " +
|
||||
"\nKoleesch \nFravaccaro \nPetr Tsymbarovich \nAndrey Getmantsev " +
|
||||
"\nKiratonin \nАлексей Дедун \nmentaljam \nJosé Jiménez \nMesut Aktaş " +
|
||||
"\nHeimen Stoffels \nRui Kon \nqwer_asew \nBérenger ARNAUD"
|
||||
text: "Nathan Follens · Fri · Jozef Mlích · Carmen Fernández B. " +
|
||||
"· Gökhan Kalayci · Fallaffel Box · Benjamin (schnubbbi) · R.G. Sidler " +
|
||||
"· Koleesch · Fravaccaro · Petr Tsymbarovich · Andrey Getmantsev " +
|
||||
"· Kiratonin · Алексей Дедун · mentaljam · José Jiménez · Mesut Aktaş " +
|
||||
"· Heimen Stoffels · Rui Kon · qwer_asew · Bérenger ARNAUD"
|
||||
}
|
||||
|
||||
PaddedLabel {
|
||||
|
|
@ -131,7 +129,7 @@ Page {
|
|||
|
||||
PaddedLabel {
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
text: "QHTTPServer \nReadability.js \nSimpleCrypt"
|
||||
text: "QHTTPServer · Readability.js · SimpleCrypt"
|
||||
}
|
||||
|
||||
Spacer {}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,9 @@
|
|||
/*
|
||||
Copyright (C) 2016 Michal Kosciesza <michal@mkiol.net>
|
||||
|
||||
This file is part of Kaktus.
|
||||
|
||||
Kaktus is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Kaktus is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Kaktus. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/* Copyright (C) 2016-2022 Michal Kosciesza <michal@mkiol.net>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import QtQuick 2.1
|
||||
import Sailfish.Silica 1.0
|
||||
|
|
@ -37,15 +25,13 @@ CoverBackground {
|
|||
}
|
||||
|
||||
function connectFetcher() {
|
||||
if (typeof fetcher === 'undefined')
|
||||
return;
|
||||
if (typeof fetcher === 'undefined') return;
|
||||
fetcher.progress.connect(fetcherProgress);
|
||||
fetcher.busyChanged.connect(fetcherBusyChanged);
|
||||
}
|
||||
|
||||
function disconnectFetcher() {
|
||||
if (typeof fetcher === 'undefined')
|
||||
return;
|
||||
if (typeof fetcher === 'undefined') return;
|
||||
fetcher.progress.disconnect(fetcherProgress);
|
||||
fetcher.busyChanged.disconnect(fetcherBusyChanged);
|
||||
}
|
||||
|
|
@ -121,7 +107,7 @@ CoverBackground {
|
|||
}
|
||||
|
||||
CoverPlaceholder {
|
||||
text: settings.signedIn ? root.busy ? root.label : root.unreadLabel : qsTr("Not signed in")
|
||||
icon.source: "image://icons/icon-a-kaktus"
|
||||
text: settings.signedIn ? root.busy ? root.label : root.unreadLabel : APP_NAME
|
||||
icon.source: settings.appIcon()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ PullDownMenu {
|
|||
property bool showNetwork: true
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("About")
|
||||
text: qsTr("About %1").arg(APP_NAME)
|
||||
visible: root.showAbout
|
||||
|
||||
onClicked: {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ static constexpr const char* APP_VERSION = "3.0.4";
|
|||
static constexpr const char* AUTHOR = "Michal Kosciesza";
|
||||
static constexpr const char* COPYRIGHT_YEAR = "2014-2022";
|
||||
static constexpr const char* AUTHOR1 = "Renaud Casenave-Péré";
|
||||
static constexpr const char* COPYRIGHT_YEAR1 = "2019-2022";
|
||||
static constexpr const char* COPYRIGHT_YEAR1 = "2019";
|
||||
static constexpr const char* SUPPORT_EMAIL = "kaktus@mkiol.net";
|
||||
static constexpr const char* PAGE = "https://github.com/mkiol/kaktus";
|
||||
static constexpr const char* LICENSE = "Mozilla Public License 2.0";
|
||||
|
|
|
|||
|
|
@ -757,3 +757,9 @@ QString Settings::getImagesDir() const {
|
|||
if (d.exists() && d.isDir()) return dir;
|
||||
return QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
|
||||
}
|
||||
|
||||
QUrl Settings::appIcon() const {
|
||||
return QUrl::fromLocalFile(
|
||||
QString(QStringLiteral("/usr/share/icons/hicolor/172x172/apps/%1.png"))
|
||||
.arg(Kaktus::APP_BINARY_ID));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <QObject>
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
#include <QVariant>
|
||||
|
||||
class QQmlContext;
|
||||
|
|
@ -292,6 +293,7 @@ class Settings : public QSettings {
|
|||
QList<ViewMode> viewModeHistory() const;
|
||||
|
||||
Q_INVOKABLE QString pocketConsumerKey() const;
|
||||
Q_INVOKABLE QUrl appIcon() const;
|
||||
|
||||
signals:
|
||||
void offlineModeChanged();
|
||||
|
|
|
|||