Carl Schwan
f5a42e64ee
Don't create QNetworkReply for image size we will discard 2ms later
2021-05-07 02:34:16 +02:00
Carl Schwan
471b525151
Fix spacing issues in FileDelegate
2021-05-07 01:51:42 +02:00
Noah Davis
07bee8d9de
ImageDelegate: Use automatic instead of explicit sourceSize
...
Fixes bad downscaling and improves RAM usage.
2021-05-06 12:53:16 -04:00
Carl Schwan
0a51c845e6
Implement quick edit
2021-05-06 16:14:38 +00:00
Srevin Saju
affcbca199
style: remove redundant Layout.fillWidth and use only one for text
...
delegate
2021-05-05 20:50:32 +03:00
Srevin Saju
fcfde394ad
Merge branch 'master' into work/srevinsaju/command-completion
2021-05-05 20:27:26 +03:00
Srevin Saju
24bf460e9f
fix: use ChatDocumentHandler.AutoCompletionType enum instead of string to chose delegates
2021-05-05 20:25:25 +03:00
Srevin Saju
929e21fc59
style: improve comparisons and formatting
...
completionMenu.completionType === "username"
completionMenu.completionType === "username"
completionMenu.completionType === "username"
completionMenu.completionType === "emoji"
style:
2021-05-05 18:29:38 +03:00
Carl Schwan
472490f257
Possible fix the freeze found in NeoChat
...
I looked at Tok code and found this as architectural difference in their
ListView.
2021-05-05 15:07:50 +00:00
Srevin Saju
75dc3e6611
fix: do not show scroll bar on x-axis in the auto completion bar
...
Fixes #342
2021-05-02 12:18:26 +00:00
Noah Davis
32c21b7b84
Fix Kirigami spelling mistake
...
Kirigani -> Kirigami
2021-05-02 07:33:20 -04:00
Srevin Saju
6c47594bc3
feat: include parameter along with help message in the completion dialog
2021-05-01 17:20:44 +03:00
Srevin Saju
6781c0c964
refactor: replace isCompletingEmoji with completionType
...
completionType (str) will tell completionListView
to load the correct delegate
2021-05-01 13:33:55 +03:00
Srevin Saju
e234861ee6
feat: add command completion UI component
2021-05-01 13:31:09 +03:00
Srevin Saju
57684aa454
fix: fix the emoji message size once again
...
this used to work once upon a time, but it stopped working recently.
This commit helps to make the emoji-only-messages bigger. In case, if emoji's
are sent as a reply to a text message, this does not affect size then.
fix: fix the size of the `(edited)` string when the message
contains only emojis' and also when its edited
2021-04-30 19:12:07 +03:00
Carl Schwan
b7d98fc6d9
Port RoomManager to C++
...
This also makes it possible to handle the Matrix URI
2021-04-27 21:07:10 +00:00
Srevin Saju
fefcbbe190
fix: remove redundant margin in the typing indicator
2021-04-27 20:58:47 +03:00
Srevin Saju
6487adafb8
feat: add an improved typing notification bar above chatbar
...
Fix #330
2021-04-27 17:43:47 +00:00
Jan Blackquill
d5d83ff7b8
Improve keyboard navigation
...
Simply enabling activeFocusOnTab on a few key elements massively improves the
keyboard navigation. Additionally, making the text box forward tab events when
appropriate allows for focus to pass through it without getitng stuck.
2021-04-25 19:38:54 +00:00
Tobias Fella
89056ed6c1
Move the ActionsHandler instance to the RoomPage
...
This is required since when using a RoomWindow, the ActionsHandler from the RoomManager is used, which means that the wrong room is used.
2021-04-17 20:47:01 +00:00
Tobias Fella
f98eb78185
Show a BusyIndicator in the FullScreenImage while the image is loading
...
Implements #339
2021-04-17 19:19:09 +02:00
Srevin Saju
66545dbc31
feat: autofocus on the textArea when the reply / edit is triggered
...
automatically focus on the textArea when reply, edit is pressed. Also
move the cursor to the end of the text content, for example, when the edit button
is pressed
2021-04-10 00:10:42 +03:00
Tobias Fella
25a8a8b011
Give the bubble component a more descriptive name
2021-04-09 23:04:26 +02:00
Tobias Fella
41b53b5245
Refactor hoverActions positioning
...
The positions are still bad, but the calculation is slightly less ugly
2021-04-09 22:51:28 +02:00
Tobias Fella
71fcc20943
Refactor the hoverActions
2021-04-09 22:25:43 +02:00
Tobias Fella
b68902cd0d
QML errors--
2021-04-08 12:35:06 +02:00
Tobias Fella
d170cc5161
Cleanup QML imports and license headers
...
- Group the imports into Qt, KDE, NeoChat
- Import the latest versions
- Remove unused imports
- Remove unused components
- Unify license header styling
2021-04-07 19:38:40 +00:00
Noah Davis
aa2d332b89
[ReplyPane] Make reply/edit Label fillWidth and elide usernames
...
Also removes a stylesheet that seemed to do nothing so that
StyledText can be used instead of RichText, which is more light weight.
fixes #336
2021-04-07 12:07:57 -04:00
Tobias Fella
73f18f4fe9
Refactor the context menu loading
2021-04-06 11:08:56 +00:00
Srevin Saju
78f7f815ca
feat: add a quick reply workflow using the Ctrl+Up arrow key
...
neochat now supports a quick reply shortcut, which helps to reply to
the last event in a room.
2021-04-05 12:17:51 +00:00
Srevin Saju
f007e96fdf
feat: add a quick edit workflow using the up arrow key
...
neochat now supports a quick edit shortcut, which helps to edit
the last message from the user in a room.
Apply 1 suggestion(s) to 1 file(s)
remove comment
2021-04-03 21:31:42 +03:00
Carl Schwan
75a2ba86ee
Remove quick reply feature
...
Unfortunately I couldn't find any way to make it work while also
making scroll works correctly. The container is now using item delegate
and by testing on my laptop touch pad it seems to scroll well.
Probably worth revising at some point but at least it makes neochat
usable.
2021-04-03 15:43:51 +00:00
Srevin Saju
71d4b8763e
feat: allow sending messages using Enter Key (numeric keypad)
2021-04-03 13:27:10 +00:00
Srevin Saju
4e02fa8290
feat: scroll to bottom on new user message
...
when the user sends a new message, and if the user is at an older position
in the timeline, then neochat should automatically scroll to the latest message and mark all the messages as read
2021-04-02 22:37:31 +00:00
Arnav Rawat
4f52c5293b
Fix deletion of images
...
Fixes #322
2021-03-29 21:45:43 +00:00
Arnav Rawat
997972a3d3
Use Layout margins consistently
...
Fixes #319 , #320 - caused by inconsistent usage of layout margins on
2021-03-29 21:45:36 +00:00
Tobias Fella
a1fb3471c9
Limit the reaction tooltip to 3 users
2021-03-29 21:23:30 +00:00
Tobias Fella
e1327dfde0
Fix opening the image context menu
2021-03-24 14:45:39 +01:00
Tobias Fella
2c4cc9672d
Fix the reaction delegate
2021-03-23 20:46:36 +01:00
Tobias Fella
e15810ab0c
Fix broken i18n in ReplyPane
2021-03-23 14:48:32 +01:00
Carl Schwan
11c2e56320
Fix timeline spacing
2021-03-20 18:02:41 +01:00
Carl Schwan
603d4e1f0d
Improve performance of the emoji model
...
Only display up to 10 emojis when searching
Related to #310 but a better solution needs to be found because we get
the same problem on big room when autocompleting usernames.
2021-03-20 15:32:33 +01:00
Carl Schwan
743c9972b9
Use singleton to pass edit/reply content to chatbox
...
This significantly reduce the complexity of everything.
2021-03-20 14:00:29 +00:00
Carl Schwan
4ef75cfdf3
Fix regression around highlited messages
...
Fix #307
2021-03-19 22:17:56 +01:00
Eike Hein
b13082a8d4
Fix some problems with overlapping chat bubbles and auto-scroll
...
* Fix the implicitHeight binding loop
* Revert the TypeError regression from 525d691c
* Fix resolving the showAuthor model role, drop the
isPooled/isReuser Loader hack for the autor name item
Fix #293
Fix #292
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2021-03-19 22:07:28 +01:00
Carl Schwan
ac94204687
Fix
2021-03-19 22:04:55 +01:00
Devin Lin
b770213e09
Revert "Maintain timeline container author height"
...
This commit did not work, and was setting a readonly property.
2021-03-19 16:46:35 -04:00
Devin Lin
dd20df5c26
Fix hover actions being taken away by scrolling
2021-03-17 21:37:30 -04:00
Devin Lin
525d691cf8
Maintain timeline container author height
2021-03-17 21:35:24 -04:00
Carl Schwan
b349c2376d
Fix message hover buttons (React, Edit, Reply) not moving with scroll
...
Fix #296
2021-03-18 01:56:27 +01:00