Commit graph

945 commits

Author SHA1 Message Date
Slava Monich
484f66f01c Don't pass primitive types by const references to NotificationManager
It makes no sense whatsoever.
2020-11-01 21:07:15 +02:00
Sebastian Wolf
6eed093e7b
Merge pull request #121 from monich/dbus-open
Don't animate ChatPage transition when notification is tapped
2020-11-01 19:52:36 +01:00
Sebastian Wolf
4de0cb213e
Merge pull request #120 from monich/chatmodel-crash
Fix crash in ChatModel
2020-11-01 19:41:44 +01:00
Sebastian Wolf
cccb48ced5
Merge pull request #119 from jgibbon/feature/qml-import-versions
clean up qml imports
2020-11-01 19:37:49 +01:00
Slava Monich
96dcbdde22 Don't animate ChatPage transition when notification is tapped
And simplified unrolling of the page stack.
2020-11-01 20:36:59 +02:00
Sebastian Wolf
11a1018ad9
Merge pull request #118 from jgibbon/feature/copy-chat-invite-link
Remove clipboard workaround
2020-11-01 19:28:03 +01:00
Sebastian Wolf
4938bbf361
Merge pull request #117 from monich/chatType
Move chatTypeFromString from ChatListModel to TDLibWrapper
2020-11-01 19:24:45 +01:00
Sebastian Wolf
8e97d19a02 Update Copy-to-Clipboard functionality & README 2020-11-01 19:20:21 +01:00
Sebastian Wolf
6cdbfec52e
Merge pull request #116 from chstem/clipboard
Copy messages to clipboard
2020-11-01 19:13:12 +01:00
Sebastian Wolf
e26cd3d9d3
Merge branch 'master' into clipboard 2020-11-01 19:12:52 +01:00
Sebastian Wolf
09256d8ed9 Update README after latest changes to chat page 2020-11-01 18:56:09 +01:00
Sebastian Wolf
27f1f02b29
Merge pull request #115 from iamnomeutente/master
Update harbour-fernschreiber-it.ts
2020-11-01 18:00:16 +01:00
Sebastian Wolf
ea33c81331
Merge pull request #114 from jgibbon/feature/speed-up-chatpage
Reduce ChatPage.qml jit compile time
2020-11-01 17:59:06 +01:00
Sebastian Wolf
30decc8f84 Make document picker work again, fix image picker 2020-11-01 17:54:00 +01:00
Slava Monich
4049d4aa7c Fixed crash in ChatModel
QList::first() panics if the list is empty.
2020-11-01 05:09:47 +02:00
John Gibbon
3f454711cf remove some unused imports 2020-10-31 21:09:59 +01:00
John Gibbon
f4d0a4800e QtMultimedia 5.6 2020-10-31 20:50:32 +01:00
John Gibbon
2cd4012b6a QtQuick 2.6 2020-10-31 20:49:03 +01:00
John Gibbon
70dc3c8571 Remove clipboard workaround
Turns out, I somehow forgot about the Clipboard type while implementing the info page. Thanks @chstem
2020-10-31 20:40:54 +01:00
Slava Monich
4c2f9dba19 Moved chatTypeFromString from ChatListModel to TDLibWrapper
So that it can be used elsewhere
2020-10-31 21:19:34 +02:00
John Gibbon
fb5cf0d382 Remorse.itemAction; content Loader height preset 2020-10-31 20:02:18 +01:00
Christian Stemmle
a9fe6d51d2 Add context menu item: copy message to clipboard 2020-10-31 15:23:58 +01:00
iamnomeutente
46f1b144a7 Update harbour-fernschreiber-it.ts 2020-10-31 09:54:47 +01:00
iamnomeutente
a8afc6e60e Update harbour-fernschreiber-it.ts 2020-10-31 09:51:09 +01:00
iamnomeutente
ba0038ef8c Merge remote-tracking branch 'upstream/master' 2020-10-31 09:38:51 +01:00
John Gibbon
1fa7192728 Reduce ChatPage.qml jit compile time
First of all: Take all measurements I mention with a grain of salt – all of them are rough and not necessarily measured more than a few times. All times were measured on an Xperia X run via SDK.

Visiting a chat page can take a long time, especially before the qml is cached by the engine.
When opening it for the first time after application launch, it sometimes takes >1000ms from onClicked (OverviewPage) to Component.OnCompleted (Chatpage).
Subsequent activations take roughly 470-480ms.

With these changes, I was able to reduce these times to ~450ms for the first, ~100ms for subsequent activations of the ChatPage on my test device.

Things changed:
- The components for displaying extra content to a message are (mostly) gone and replaced by a single Loader. This Loader does not use sourceComponent to trade the initial compilation boost for a neglegible bit of runtime penalty.
- Connections were consolidated
- I was surprised how costly the inclusion of the RemorseItem was (compiling ~75ms, initializing up to ~20ms for every delegate). So I traded a bit for a compromise. deleteMessageRemorseItem is now defined on the appWindow level, where it gets a bit mitigated by the animations at application start. Also, only one deletion at a time is now possible. We can easily revert this change, but I thought it worthwhile despite its drawbacks.
- profileThumbnailComponent is now defined directly as sourceComponent, removing the need for its id. Probably didn't do anything.
- InReplyToRow had width: parent.width, so I removed horizontalCenter. Also probably didn't change compilation time at all.
- Another compromise I was willing to take – your opinion may differ: The PickerPages took ages (~200ms) to just parse/compile inside those Components, so I replaced them with the "string notation" of pageStack.push. Drawback: The first time a picker gets activated, you'll see how slow it is. Subsequent activations aren't that bad – also for the other pickers.
2020-10-30 20:37:25 +01:00
Sebastian Wolf
72315312d6
Merge pull request #113 from jgibbon/feature/reenable-poll-type-display
add poll preview type output
2020-10-30 20:28:43 +01:00
Sebastian Wolf
46ffdc68c4
Merge pull request #112 from GNUuser/patch-12
Update harbour-fernschreiber-es.ts
2020-10-30 20:25:55 +01:00
John Gibbon
c185ba1b42 add poll preview type output
as discussed in d45eb28daa
2020-10-30 19:07:06 +01:00
carlosgonz
47d5ec73a3
Update harbour-fernschreiber-es.ts 2020-10-29 18:51:38 -04:00
Sebastian Wolf
d45eb28daa Minor changes to poll display & translation adjustments 2020-10-29 22:39:43 +01:00
Sebastian Wolf
e3224c5b4f
Merge pull request #111 from jgibbon/bugfix/poll-fixes
Fix two issues in PollPreview
2020-10-29 21:57:16 +01:00
Åke Engelbrektson
0346b749fa Update harbour-fernschreiber-sv.ts
Update Swedish translation
2020-10-28 08:17:42 +01:00
John Gibbon
894e9af0c0 Fix two issues in PollPreview
- The new emoji basePath workaround also works for TextSwitch content.
 - Checking which context menu entries get added for the poll preview didn't quite work nicely "OnCompleted".
2020-10-28 08:11:14 +01:00
Sebastian Wolf
afb53965b4
Merge pull request #108 from jgibbon/bugfix/remove-path-replacement
Fix emoji paths for chat information Items
2020-10-27 22:33:13 +01:00
iamnomeutente
a50e4a48b8 Update harbour-fernschreiber-it.ts and README.md 2020-10-27 21:55:04 +01:00
John Gibbon
8c69e04e83 Fix emoji paths for chat information Items 2020-10-27 21:42:39 +01:00
iamnomeutente
aeed051afd Update harbour-fernschreiber-it.ts and README.md 2020-10-27 15:57:56 +01:00
Sebastian Wolf
7b22c522f1 Update translation files after merging several PRs 2020-10-26 22:40:53 +01:00
Sebastian Wolf
06c6943ea5
Merge pull request #106 from jgibbon/feature/use-svgs
use svg icons
2020-10-26 22:28:26 +01:00
Sebastian Wolf
3402fddaa6
Merge branch 'master' into feature/use-svgs 2020-10-26 22:17:13 +01:00
Sebastian Wolf
2a4325f4ed
Merge pull request #105 from monich/image-page
Tweaked ImagePage behavior
2020-10-26 21:55:32 +01:00
Sebastian Wolf
f2f089d5b2
Merge pull request #103 from monich/const-refs
TDLibWrapper cleanup
2020-10-26 21:36:01 +01:00
Sebastian Wolf
3175e641dc
Merge branch 'master' into const-refs 2020-10-26 21:28:39 +01:00
Sebastian Wolf
e8d33cd920
Merge pull request #101 from jgibbon/feature/display-polls
implement polls
2020-10-26 21:06:28 +01:00
John Gibbon
d38490fb09 use svg icons
Closes #102.

Doesn't use Shader/HighlightImage for background/placeholder, since that neither matched the previous look nor meet my visual expectations at all. I created both previously available color variations as svg accordingly.
Implementation of the background images has been outsourced to a dedicated qml file to reduce duplication and ensure the same layout. Padding is now "medium" everywhere (stickers had none, audio had "small").

For the Icons, some (Highlight-)Image+MouseArea combinations have been changed to IconButton.
Regarding videos, I'm not actually sure if the missing "highlight" on the fullscreen icon was intentional. An issue with videos possibly having the same color as the icon remains basically the same. Nonetheless, if this isn't desired, I'll revert to just using the white image.

The sticker icon actually does look a bit differently now – it's a bit smaller. I've redrawn it from scratch but mostly kept the dimensions of icon-m-other (which doesn't look good when zoomed in, btw). Perhaps I actually did made a mistake drawing the previous one. Either way, I think it fits well enough.

The notification icon remains png, but I managed to reduce its file size by ~60% without visibly impacting it much imho.

This may be the longest commit message I've ever written.
2020-10-26 15:15:53 +01:00
John Gibbon
c7843919a7 hide poll IconButton if not applicable 2020-10-26 10:24:50 +01:00
Sebastian Wolf
70170c894f
Merge pull request #104 from jorm1s/patch-2
Update harbour-fernschreiber-fi.ts
2020-10-25 19:17:37 +01:00
Sebastian Wolf
121ab8cff0 Fix syntax error in Italian translation 2020-10-25 19:15:55 +01:00
Sebastian Wolf
0877332251
Merge pull request #98 from GNUuser/patch-10
Update harbour-fernschreiber-es.ts
2020-10-25 19:12:58 +01:00