Commit 7dc62d4f authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Lot of bugfix, UI polish, new icon

parent 014db00a
......@@ -4,5 +4,6 @@
<file>icons/108x108/harbour-telegrame.png</file>
<file>icons/128x128/harbour-telegrame.png</file>
<file>icons/172x172/harbour-telegrame.png</file>
<file>icons/scalable/harbour-telegrame.svg</file>
</qresource>
</RCC>
icons/108x108/harbour-telegrame.png

4.25 KB | W: | H:

icons/108x108/harbour-telegrame.png

4.66 KB | W: | H:

icons/108x108/harbour-telegrame.png
icons/108x108/harbour-telegrame.png
icons/108x108/harbour-telegrame.png
icons/108x108/harbour-telegrame.png
  • 2-up
  • Swipe
  • Onion skin
icons/128x128/harbour-telegrame.png

5.21 KB | W: | H:

icons/128x128/harbour-telegrame.png

5.62 KB | W: | H:

icons/128x128/harbour-telegrame.png
icons/128x128/harbour-telegrame.png
icons/128x128/harbour-telegrame.png
icons/128x128/harbour-telegrame.png
  • 2-up
  • Swipe
  • Onion skin
icons/172x172/harbour-telegrame.png

7.03 KB | W: | H:

icons/172x172/harbour-telegrame.png

7.66 KB | W: | H:

icons/172x172/harbour-telegrame.png
icons/172x172/harbour-telegrame.png
icons/172x172/harbour-telegrame.png
icons/172x172/harbour-telegrame.png
  • 2-up
  • Swipe
  • Onion skin
icons/86x86/harbour-telegrame.png

3.35 KB | W: | H:

icons/86x86/harbour-telegrame.png

3.67 KB | W: | H:

icons/86x86/harbour-telegrame.png
icons/86x86/harbour-telegrame.png
icons/86x86/harbour-telegrame.png
icons/86x86/harbour-telegrame.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="100%"
height="100%"
viewBox="0 0 240 240"
version="1.1"
xml:space="preserve"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
id="svg23"><metadata
id="metadata27"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata>
<path
id="path2"
style="fill:url(#linearGradient4546);fill-opacity:1;fill-rule:nonzero;stroke-width:2.80328012"
d="M 238.9972,4.9657377 C 238.9972,2.775246 237.22196,1 235.03146,1 c 0,0 -113.26179,0 -115.03147,0 C 54.276883,1 0.99999995,54.276886 0.99999995,120 c 0,65.72032 53.27688305,119 118.99999005,119 65.72312,0 119,-53.27968 119,-119 0,-1.77246 -0.003,-115.0342623 -0.003,-115.0342623 z" />
<path
style="fill:#18a9d8;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="m 97.728739,142.10299 15.788841,-13.83151 -0.11524,-19.07617 -36.201168,22.76563 12.697266,41.80078 c 1.66984,4.60856 2.225808,5.92781 5.287562,6.43628 z"
id="path845" /><path
style="fill:#2ab6e8;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="m 166.77734,76.720703 c -1.08227,-0.01504 -2.54862,0.372978 -4.0625,1.291016 l -49.3125,31.183591 v 19.07617 l 54.01364,-48.693335 c 1.90051,-1.686495 1.16511,-2.832359 -0.63868,-2.857422 z"
id="path6" /><path
id="path8"
style="fill:#159abf;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="m 95.186,180.198 c 3.73566,0 5.38682,-1.70844 7.47132,-3.73566 l 17.99096,-17.5754 -22.919541,-16.78395" /><path
style="fill:#53cef5;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="M 113.40234,109.19531 H 40.740234 c -8.371272,3.87788 -8.045225,8.91905 -0.476562,11.23633 l 36.9375,11.5293 z"
id="path842" /><path
style="fill:#48c3eb;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="M 113.51758 128.21875 L 113.51758 128.27148 L 120.04102 122.33203 L 113.51758 128.21875 z "
id="path840" /><path
style="fill:#53cef5;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="m 169.76607,185.63281 -41.14889,-71.08007 -30.888441,27.55025 60.717011,44.4947 c 4.9322,2.72123 8.85224,2.42323 11.32032,-0.96485 z"
id="path838" /><path
style="fill:#3ec1ec;fill-opacity:1;fill-rule:nonzero;stroke-width:1.24521995"
d="m 190.74414,52.210938 c -1.47998,-0.165342 -3.10857,0.10927 -4.75195,0.855468 L 42.056641,108.56641 c -0.501327,0.2011 -0.866279,0.42039 -1.316407,0.6289 h 72.662106 l 49.3125,-31.183591 c 4.03701,-2.448102 7.74201,-1.131986 4.70118,1.566406 l -38.79884,34.974615 41.04884,71.08007 c 0.97086,-1.33277 1.73928,-3.09898 2.22265,-5.41601 L 196.40039,64.707031 c 1.88183,-7.546967 -1.2163,-12.000068 -5.65625,-12.496093 z"
id="path10" />
<defs
id="defs21"><linearGradient
id="linearGradient4544"><stop
style="stop-color:#f2f2f2;stop-opacity:1"
offset="0"
id="stop4540" /><stop
style="stop-color:#fbfbfb;stop-opacity:1"
offset="1"
id="stop4542" /></linearGradient>
<linearGradient
id="_Linear1"
x1="0"
y1="0"
x2="1"
y2="0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(203.17164,-203.17164,203.17164,203.17164,35.359221,204.64089)"><stop
offset="0"
style="stop-color:rgb(30,152,200);stop-opacity:1"
id="stop14" /><stop
offset="1"
style="stop-color:rgb(146,212,240);stop-opacity:1"
id="stop16" /></linearGradient>
<linearGradient
xlink:href="#linearGradient4544"
id="linearGradient4546"
x1="28.763664"
y1="195.41632"
x2="231.42755"
y2="6.0867963"
gradientUnits="userSpaceOnUse" />
</defs>
</svg>
\ No newline at end of file
......@@ -41,6 +41,7 @@ ApplicationWindow {
property alias sendTextMsgOnEnterKey : configSendTextMsgOnEnterKey.value;
property alias includeMutedChatsInUnreadCount : configIncludeMutedChatsInUnreadCount.value;
property alias keepKeyboardOpenAfterMsgSend : configKeepKeyboardOpenAfterMsgSend.value;
property alias limitFilePickerToHome : configLimitFilePickerToHome.value;
readonly property bool active : (Qt.application.state === Qt.ApplicationActive);
readonly property bool isPortrait : (window.orientation === Orientation.Portrait || window.orientation === Orientation.PortraitInverted);
......@@ -97,6 +98,11 @@ ApplicationWindow {
key: "/apps/telegrame/keep_kdb_open_after_msg_send";
defaultValue: true;
}
ConfigurationValue {
id: configLimitFilePickerToHome;
key: "/apps/telegrame/limit_file_picker_to_home";
defaultValue: true;
}
ConfigurationValue {
id: configAvatarShape;
key: "/apps/telegrame/avatar_shape";
......@@ -571,9 +577,9 @@ ApplicationWindow {
RectangleButton {
icon: "icon-m-back";
size: (Theme.iconSizeMedium * 0.65);
enabled: (modelDocuments.folder.toString () !== modelDocuments.limitedTo);
implicitWidth: Theme.itemSizeExtraSmall;
implicitHeight: Theme.itemSizeExtraSmall;
enabled: (modelDocuments.parentFolder !== "file:///");
anchors.verticalCenter: parent.verticalCenter;
onClicked: {
modelDocuments.folder = modelDocuments.parentFolder;
......@@ -595,8 +601,8 @@ ApplicationWindow {
orientation: ListView.Vertical;
model: FolderListModel {
id: modelDocuments;
folder: "file:///home/nemo";
rootFolder: "file:///";
folder: pathHome;
rootFolder: limitedTo;
showDirs: true;
showDirsFirst: true;
showDotAndDotDot: false;
......@@ -604,6 +610,15 @@ ApplicationWindow {
showHidden: false;
sortReversed: false;
sortField: FolderListModel.Name;
onLimitedToChanged: {
if (folder.toString ().indexOf (limitedTo) !== 0) {
folder = pathHome;
}
}
readonly property string pathRoot : "file:///";
readonly property string pathHome : "file:///home/nemo";
readonly property string limitedTo : (limitFilePickerToHome ? pathHome : pathRoot);
}
delegate: MouseArea {
id: delegateSelectorDocument;
......@@ -659,7 +674,7 @@ ApplicationWindow {
}
}
ExtraAnchors.horizontalFill: parent;
Container.forcedHeight: (isPortrait ? Theme.iconSizeExtraLarge * 2 : Theme.iconSizeExtraLarge * 1.35);
Container.forcedHeight: (isPortrait ? Theme.iconSizeExtraLarge * 2.35 : Theme.iconSizeExtraLarge * 1.35);
}
RowContainer {
visible: (currentMsgType === TD_ObjectType.MESSAGE_VOICE_NOTE);
......@@ -2189,25 +2204,20 @@ ApplicationWindow {
font.pixelSize: Theme.fontSizeExtraLarge;
anchors.right: parent.right;
}
RowContainer {
spacing: Theme.paddingLarge;
DelegateAvatar {
size: (Theme.iconSizeExtraLarge * 1.65);
fileItem: (pageChatInfoPrivate.chatItem && pageChatInfoPrivate.chatItem.photo ? pageChatInfoPrivate.chatItem.photo.big : null);
anchors.horizontalCenter: parent.horizontalCenter;
}
LabelFixed {
text: (pageChatInfoPrivate.chatItem ? pageChatInfoPrivate.chatItem.title : "");
color: Theme.primaryColor;
wrapMode: Text.WrapAtWordBoundaryOrAnywhere;
horizontalAlignment: Text.AlignHCenter;
font.family: Theme.fontFamilyHeading;
font.pixelSize: Theme.fontSizeLarge;
anchors.margins: Theme.paddingLarge;
ExtraAnchors.horizontalFill: parent;
DelegateAvatar {
size: Theme.iconSizeExtraLarge;
fileItem: (pageChatInfoPrivate.chatItem && pageChatInfoPrivate.chatItem.photo ? pageChatInfoPrivate.chatItem.photo.big : null);
anchors.verticalCenter: parent.verticalCenter;
}
LabelFixed {
text: (pageChatInfoPrivate.chatItem ? pageChatInfoPrivate.chatItem.title : "");
color: Theme.primaryColor;
wrapMode: Text.WrapAtWordBoundaryOrAnywhere;
font.family: Theme.fontFamilyHeading;
font.pixelSize: Theme.fontSizeLarge;
anchors.verticalCenter: parent.verticalCenter;
Container.horizontalStretch: 1;
}
}
RowContainer {
spacing: Theme.paddingLarge;
......
......@@ -23,7 +23,7 @@ Page {
Container.forcedHeight: Theme.paddingMedium;
}
Image {
source: "qrc:///images/Telegram_logo.svg";
source: "qrc:///icons/scalable/harbour-telegrame.svg";
sourceSize: Qt.size (Theme.iconSizeExtraLarge, Theme.iconSizeExtraLarge);
anchors.horizontalCenter: parent.horizontalCenter;
}
......
......@@ -6,6 +6,7 @@ import "../components";
Page {
id: page;
allowedOrientations: Orientation.All;
SilicaListView {
id: flickerContacts;
......
......@@ -23,6 +23,11 @@ Page {
key: "/apps/telegrame/keep_kdb_open_after_msg_send";
defaultValue: true;
}
ConfigurationValue {
id: configLimitFilePickerToHome;
key: "/apps/telegrame/limit_file_picker_to_home";
defaultValue: true;
}
ConfigurationValue {
id: configAvatarShape;
key: "/apps/telegrame/avatar_shape";
......@@ -73,6 +78,16 @@ Page {
Binding on checked { value: configKeepKeyboardOpenAfterMsgSend.value; }
}
TextSwitch {
text: qsTr ("Limit file picker to home directory");
description: qsTr ("By default one can't navigate outside of home, but can be unlocked for advanced users")
automaticCheck: true;
onCheckedChanged: {
configLimitFilePickerToHome.value = checked;
}
Binding on checked { value: configLimitFilePickerToHome.value; }
}
LabelFixed {
text: qsTr ("Avatar shape");
anchors.horizontalCenter: parent.horizontalCenter;
......
......@@ -14,7 +14,7 @@ Name: harbour-telegrame
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: A native Telegram client for Sailfish OS
Version: 0.9
Release: 10
Release: 11
Group: Qt/Qt
License: WTFPL
URL: http://gitlab.unique-conception.org/sailfish-app/telegra-me
......
Name: harbour-telegrame
Summary: A native Telegram client for Sailfish OS
Version: 0.9
Release: 10
Release: 11
Group: Qt/Qt
URL: http://gitlab.unique-conception.org/sailfish-app/telegra-me
......
......@@ -25,6 +25,7 @@ QtTdLibChat::QtTdLibChat (const qint64 id, QObject * parent)
connect (this, &QtTdLibChat::unreadCountChanged, this, &QtTdLibChat::refreshNotification);
connect (this, &QtTdLibChat::isCurrentChatChanged, this, &QtTdLibChat::refreshNotification);
connect (this, &QtTdLibChat::lastReceivedMessageIdChanged, this, &QtTdLibChat::refreshNotification);
connect (this, &QtTdLibChat::notificationSettingsChanged, this, &QtTdLibChat::refreshNotification);
connect (&m_timer, &QTimer::timeout, this, [this] (void) {
QtTdLibMessage * lastMsg = { getMessageItemById (m_lastReceivedMessageId) };
if (!m_isCurrentChat &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment