Joshua Goins
a0499e5140
Set sourceSize in for images, improving memory usage and smoothing
...
In some cases (where we don't get a thumbnail) we load the entire image,
which might be large. Even when we get a thumbnail, the smoothing we
apply doesn't get the best results and the only other option is
mipmapping which is more memory intensive - it stores progressively
smaller images but keeps all of them in memory.
Now the ImageDelegate sets the sourceSize, which helps reduce the memory
footprint (since Qt will throw away whatever parts of the image we don't
need) and makes the images look smoother when scaled. However,
AnimatedImages do not support this so this change introduces a new
property to tell if the image could possibly be animated. It will
erroneously pick up formats that could support animation (e.g. WebP) but
other image formats will still benefit so it's a net positive. The
ImageDelegate will load the correct image component depending on this
property.
2023-08-19 18:20:49 +00:00
Joshua Goins
6d8c1d0780
Fix avatar URLs for rooms
...
Room avatar URLs don't specify the new mxc:// format the user avatars
use, so we need to carve out a workaround for them.
2023-08-19 15:45:51 +00:00
Joshua Goins
7fe85066a4
Move attachment dialog to ChatBar, where it can actually be used
...
ChatBar calls to an attachDialog that never comes, so let's have them
move in together.
2023-08-19 15:23:04 +00:00
Joshua Goins
4104e10d95
Add another message when no rooms are found
2023-08-19 14:08:45 +00:00
Joshua Goins
05f3c3ee0a
Make the explore page header way prettier, like it is in KCMs
2023-08-19 14:08:45 +00:00
Joshua Goins
0a1c489401
Make the explore page search loading process more obvious
...
Adds progress bars, lots of them! Now it's easier to tell if NeoChat is
trying it's best to load the public room list.
2023-08-19 14:08:45 +00:00
Carl Schwan
3bd93996c0
Don't inherit color in TimelineContainer
2023-08-16 23:44:22 +02:00
Joshua Goins
24d0082048
Use view-list-details instead of expand icon in room drawer
2023-08-16 20:07:46 +00:00
Joshua Goins
2980af11b0
Destroy the correct component in space list context menu
2023-08-16 20:07:46 +00:00
Joshua Goins
91d9406c38
Prevent the TapHandler in AvatarTabButton from triggering clicked()
...
This caused right-clicks on this component (for example, in the space
drawer) to cause clicked() to be called on the delegate.
2023-08-16 20:07:46 +00:00
Joshua Goins
280d1e38e2
Add icons to the space list context menu items
2023-08-16 20:07:46 +00:00
Joshua Goins
7b520da4b4
Prevent the chat bar from pasting a local file URL if we save the bitmap
...
There's no point in also putting the file:// URL, so catch the event if
saving the bitmap from the clipboard is successful.
2023-08-16 19:57:22 +00:00
Joshua Goins
9c4d8ef823
Fix the account switcher width so it doesn't spill off the side
2023-08-16 19:39:14 +00:00
Joshua Goins
fe3bf3a638
Pick a better shadow and clean up emoji popup backgrounds
...
These shadows are now closer to how other popups look.
2023-08-16 19:31:07 +00:00
Joshua Goins
d678a446e2
Don't clip the emoji popups as they destroy shadows
2023-08-16 19:31:07 +00:00
Tobias Fella
4ea183b139
Improve tooltips in chatbar
2023-08-14 07:54:47 +00:00
Tobias Fella
22fd24549b
Wrap room display name in Room Drawer
2023-08-13 20:02:58 +02:00
James Graham
018154f555
No emoji chatbar button on mobile
...
Hide the emoji button in the `chatbar` and don't instantiate the dialog component on mobile. This isn't needed on mobile as the virtual keyboard can add emojis. Should also save a small amount of memory on mobile from the dialog which is normally always instantiated.
2023-08-09 18:10:53 +00:00
Carl Schwan
bf5ce049d9
Port to new settings component
2023-08-08 21:40:05 +00:00
Carl Schwan
58213ee3e6
Display big emoji correctly
...
We already check with a regex if the message only contains emoji so it is safe
to hardcode the font family as emoji for these messages.
2023-08-08 12:07:16 +02:00
Tobias Fella
67453d9fb8
Remove ifdefs for E2EE
2023-08-07 21:15:11 +00:00
Tobias Fella
3ab04583ae
Force plain text in room delegate
2023-08-07 22:58:11 +02:00
James Graham
c7c892c51c
Fix message long press
...
Add a tap handler so that long press events in the text of a message can be captured. This should make mobile menus work on text messages again.
2023-08-06 17:08:46 +00:00
Tobias Fella
88368cefaa
Remove leftover debug statement
2023-08-06 00:51:28 +02:00
Tobias Fella
ab4bb41979
Fix last active time in devices page
2023-08-05 20:32:47 +02:00
James Graham
c2398b19dc
Fix mark all read on room change
...
Fix it so that the view is correctly positioned at the bottom when the room is changed and make sure this is not seen as a scroll event (i.e. messages are not automatically marked as read but the timer has to time out first and all visible on screen).
2023-08-05 17:38:21 +00:00
James Graham
4b3dac025f
Declare currentRoom property
...
Make sure `currentRoom` is a property for every qml component where it's used in `chatbar`.
2023-08-05 16:50:06 +00:00
James Graham
bc4431462a
Chatbox id for all property refs
...
Change the chatbox id to root and use for all references to it properties. Using root.currentRoom is needed for the chatbar to be visible in KF6
2023-08-04 13:56:26 +00:00
Tobias Fella
e90aecbead
Port UserDetailDialog to Kirigami.Dialog
2023-08-03 17:26:46 +02:00
James Graham
25e0e3fa8e
Remove NeoChatUser and just use Quotient::User this simplifies things and avoids casting from one to the other which address santizer didn't like
2023-08-01 15:57:58 +00:00
Tobias Fella
2a651b8946
Use pageStack.pushDialogLayer for devtools and inviteuser
2023-07-31 20:44:50 +02:00
Volker Krause
00c0d1c276
Add heading indicator for live locations
...
Heading isn't covered by any MSC so far, so that is using Itinerary's
vendor prefix for now.
2023-07-31 18:06:52 +02:00
Carl Schwan
5f41b7b4c1
Fix opening account menu on right click
2023-07-31 07:02:00 +00:00
Tobias Fella
719b916837
Add accessible name to RoomDelegate
2023-07-30 22:57:46 +02:00
Tobias Fella
f9514fe925
Add accessible name to chatbar
2023-07-30 22:57:43 +02:00
Tobias Fella
399b9e6944
Add text and tooltip to section collapse/expand button
2023-07-30 22:29:21 +02:00
Tobias Fella
3bd639775a
Fix room list icon size in compact room list
...
BUG: 472682
2023-07-29 19:00:58 +00:00
Tobias Fella
9997b1074a
Make "Close to system tray" string more correct
...
BUG: 472051
2023-07-29 09:01:14 +00:00
Joshua Goins
0ac3932303
Add an obvious "upload" button in the account editor
...
It's not obvious at first glance that you can click on the avatar in the
account editor to upload an image. This adds a new button when there is
no image uploaded.
2023-07-26 08:27:55 +00:00
Joshua Goins
807a9ee779
Fix errors preventing the avatar from being shown when uploaded
2023-07-26 08:27:55 +00:00
Joshua Goins
4f32a168cd
Fix settings button tooltip
2023-07-26 02:04:24 -04:00
Tobias Fella
9ba6b2f0a5
Fix clearing user search field text when switching rooms
2023-07-24 08:45:51 +00:00
Carl Schwan
f8d3e25f8e
Move no connection info message to the top
2023-07-24 08:45:10 +00:00
Carl Schwan
75cd77facb
Refactor completion menu
...
- Use new Avatar
- Use required property in delegate
2023-07-24 08:44:49 +00:00
Carl Schwan
b486cb905c
Add back some spacing around the avatar in the timeline
2023-07-22 18:41:09 +00:00
Carl Schwan
cdd5c9f484
Fix accessibility of StartChatPage and port to new components
2023-07-22 18:41:09 +00:00
Carl Schwan
3e6c426397
Port Avatar usage in Settings KirigamiAddons
2023-07-22 18:41:09 +00:00
Carl Schwan
847f41e1ad
Port most Avatar usage to new KirigamiAddons Avatar
2023-07-22 18:41:09 +00:00
Carl Schwan
c8b4da2b96
Scroll to top of RoomDrawer on loading of header
2023-07-22 17:50:32 +00:00
Carl Schwan
dbf67b984e
Fix reply error message when the reply is not loaded yet
2023-07-21 11:24:10 +02:00