Small visual improvements
This commit is contained in:
parent
4d0898b349
commit
6d0a6d67d9
4 changed files with 69 additions and 61 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
#include <QTimer>
|
||||
#include <QDebug>
|
||||
|
||||
#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
|
||||
{
|
||||
|
|
|
@ -19,61 +19,61 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="37"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="45"/>
|
||||
<source>Notes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="46"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="51"/>
|
||||
<source>This app is released under the MIT license.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="48"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="53"/>
|
||||
<source>The source code is available on</source>
|
||||
<extracomment>Pre-Showdown Github link</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="50"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="55"/>
|
||||
<source>.</source>
|
||||
<extracomment>Post-Showdown Github link</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="54"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="59"/>
|
||||
<source>MIT License</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="66"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="71"/>
|
||||
<source>This app uses</source>
|
||||
<extracomment>Pre-Showdown Github link</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="68"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="73"/>
|
||||
<source>to convert Markdown to HTML.</source>
|
||||
<extracomment>Post-Showdown Github link</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="69"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="74"/>
|
||||
<source>Showdown 1.x is released under GPL 2.0.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="73"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="78"/>
|
||||
<source>GPL 2.0 License</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="80"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="85"/>
|
||||
<source>Nextcloud Notes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="81"/>
|
||||
<location filename="../qml/pages/AboutPage.qml" line="86"/>
|
||||
<source>for Sailfish OS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -472,183 +472,183 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="54"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="57"/>
|
||||
<source>Unnamed account</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="54"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="55"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="57"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="58"/>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="70"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="73"/>
|
||||
<source>Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="76"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="79"/>
|
||||
<source>Delete</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="78"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="81"/>
|
||||
<source>Deleting account</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="88"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="91"/>
|
||||
<source>Add account</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="97"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="100"/>
|
||||
<source>Synchronization</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="101"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="104"/>
|
||||
<source>Auto-Sync</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="102"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="105"/>
|
||||
<source>Periodically pull notes from the server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="109"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="112"/>
|
||||
<source>Disabled</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="109"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="112"/>
|
||||
<source>every</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="111"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="114"/>
|
||||
<source>Minutes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="112"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="115"/>
|
||||
<source>Seconds</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="133"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="136"/>
|
||||
<source>The Answer is 42</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="134"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="137"/>
|
||||
<source>Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="142"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="145"/>
|
||||
<source>Appearance</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="150"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="153"/>
|
||||
<source>No sorting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="174"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="177"/>
|
||||
<source>Favorites on top</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="175"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="178"/>
|
||||
<source>Show notes marked as favorite above the others</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="213"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="216"/>
|
||||
<source>Reset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="216"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="219"/>
|
||||
<source>Reset app settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="226"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="229"/>
|
||||
<source>Resetting the app wipes all application data from the device! This includes offline synced notes, app settings and accounts.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="147"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="150"/>
|
||||
<source>Last edited</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="148"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="151"/>
|
||||
<source>Category</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="149"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="152"/>
|
||||
<source>Title alphabetically</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="152"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="155"/>
|
||||
<source>Sort notes by</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="153"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="156"/>
|
||||
<source>This will also change how the notes are grouped</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="180"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="183"/>
|
||||
<source>Show separator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="181"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="184"/>
|
||||
<source>Show a separator line between the notes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="191"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="194"/>
|
||||
<source>lines</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="192"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="195"/>
|
||||
<source>Number of lines in the preview</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="197"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="200"/>
|
||||
<source>Editing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="200"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="203"/>
|
||||
<source>Monospaced font</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="201"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="204"/>
|
||||
<source>Use a monospeced font to edit a note</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="206"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="209"/>
|
||||
<source>Capital 'X' in checkboxes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="207"/>
|
||||
<location filename="../qml/pages/SettingsPage.qml" line="210"/>
|
||||
<source>For interoperability with other apps such as Joplin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in a new issue