From 6d0a6d67d9311e05499743ab6b637bb878a035b8 Mon Sep 17 00:00:00 2001 From: Scharel Clemens Date: Sat, 2 Jan 2021 12:34:31 +0100 Subject: [PATCH] Small visual improvements --- qml/pages/AboutPage.qml | 15 ++-- qml/pages/SettingsPage.qml | 3 + src/notesapi.h | 16 ++--- translations/harbour-nextcloudnotes.ts | 96 +++++++++++++------------- 4 files changed, 69 insertions(+), 61 deletions(-) diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index 3f0894b..25830b5 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -33,12 +33,17 @@ Page { label: qsTr("Name") value: Qt.application.name }*/ + Image { + width: Theme.iconSizeExtraLarge + height: Theme.iconSizeExtraLarge + anchors.horizontalCenter: parent.horizontalCenter + fillMode: Image.PreserveAspectFit + source: "../img/icon-launcher-nextcloudnotes.svg" + } + SectionHeader { text: "Nextcloud " + qsTr("Notes") + " v" + Qt.application.version } - Icon { - source: "../img/icon-launcher-nextcloudnotes.svg" - } LinkedLabel { id: nextcloudnotesLabel x: Theme.horizontalPageMargin @@ -46,8 +51,8 @@ Page { text: "

" + qsTr("This app is released under the MIT license.") + "

" + //: Pre-Showdown Github link "

" + qsTr("The source code is available on") + " GitHub" + - //: Post-Showdown Github link - qsTr(".") + "

" + //: Post-Showdown Github link + qsTr(".") + "

" } Button { anchors.horizontalCenter: parent.horizontalCenter diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index ade4463..32de3f7 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -37,6 +37,9 @@ Page { font.pixelSize: Theme.fontSizeLarge color: Theme.secondaryHighlightColor anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + width: parent.width + wrapMode: Text.Wrap } Repeater { id: accountRepeater diff --git a/src/notesapi.h b/src/notesapi.h index 821c493..1e1d0ab 100644 --- a/src/notesapi.h +++ b/src/notesapi.h @@ -11,14 +11,14 @@ #include #include -#define STATUS_ENDPOINT "/status.php" -#define LOGIN_ENDPOINT "/index.php/login/v2" -#define NOTES_ENDPOINT "/index.php/apps/notes/api/v0.2/notes" -#define OCS_ENDPOINT "/ocs/v1.php/cloud" -#define EXCLUDE_QUERY "exclude=" -#define PURGE_QUERY "purgeBefore=" -#define ETAG_HEADER "If-None-Match" -#define POLL_INTERVALL 5000 +const QString STATUS_ENDPOINT("/status.php"); +const QString LOGIN_ENDPOINT("/index.php/login/v2"); +const QString NOTES_ENDPOINT("/index.php/apps/notes/api/v0.2/notes"); +const QString OCS_ENDPOINT("/ocs/v1.php/cloud"); +const QString EXCLUDE_QUERY("exclude="); +const QString PURGE_QUERY("purgeBefore="); +const QString ETAG_HEADER("If-None-Match"); +const int POLL_INTERVALL = 5000; class NotesApi : public QObject { diff --git a/translations/harbour-nextcloudnotes.ts b/translations/harbour-nextcloudnotes.ts index cefac86..c3d22d7 100644 --- a/translations/harbour-nextcloudnotes.ts +++ b/translations/harbour-nextcloudnotes.ts @@ -19,61 +19,61 @@ - + Notes - + This app is released under the MIT license. - + The source code is available on Pre-Showdown Github link - + . Post-Showdown Github link - + MIT License - + This app uses Pre-Showdown Github link - + to convert Markdown to HTML. Post-Showdown Github link - + Showdown 1.x is released under GPL 2.0. - + GPL 2.0 License - + Nextcloud Notes - + for Sailfish OS @@ -472,183 +472,183 @@ - + Unnamed account - - + + unknown - + Edit - + Delete - + Deleting account - + Add account - + Synchronization - + Auto-Sync - + Periodically pull notes from the server - + Disabled - + every - + Minutes - + Seconds - + The Answer is 42 - + Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything! - + Appearance - + No sorting - + Favorites on top - + Show notes marked as favorite above the others - + Reset - + Reset app settings - + Resetting the app wipes all application data from the device! This includes offline synced notes, app settings and accounts. - + Last edited - + Category - + Title alphabetically - + Sort notes by - + This will also change how the notes are grouped - + Show separator - + Show a separator line between the notes - + lines - + Number of lines in the preview - + Editing - + Monospaced font - + Use a monospeced font to edit a note - + Capital 'X' in checkboxes - + For interoperability with other apps such as Joplin