Commit Graph

71 Commits

Author SHA1 Message Date
Jan Bidler
b44e81c849 Make Right Click on Room bring up Context Menu
BUG: 454892
2022-06-07 08:42:39 +00:00
James Graham
10da870ab3 Fix search item being behind the roomlist in collapsed mode by moving code into ListView. Now the search item is always at the top of the list. 2022-05-15 14:17:38 +01:00
James Graham
cef5d11130 Fix scrollbar behaviour in Room List
In the Room List there is always a gap left for the scrollbar in normal mode whether it is visible or not. This commit makes the gap disappear when the scrollbar is not visible by using the verticalscrollbarpolicy of the scrollpage.

Fixes network/neochat#518
2022-05-12 19:16:40 +00:00
Snehit Sah
9a5f2e4938 Show subtitle text without markdown
Create new role in RoomListModel to send back cleaned subtitle text
2022-03-31 17:39:34 +00:00
Tobias Fella
62f6cfbf9a Force RoomListDelegate to use plaintext
Text.AutoText isn't robust enough to handle this
2022-03-08 14:45:33 +01:00
Tobias Fella
a6ab447955 Implement adding labels for account
This gives the user the ability to label different account (e.g. "work",
"private") and shows this label in the account switcher. Showing the
label in more places will be done in future MRs.

The label is stored in the user's account data and thus transfers
automatically to other instances of neochat
2022-01-31 22:45:17 +01:00
Carl Schwan
6e1c07047e Add a mobile oriented context menu for the room list
It works similarly as in the timeline with a bottom based drawer on
mobile and a normal context menu on desktop

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-12 22:09:46 +00:00
Tobias Fella
d494eb1c63 Use Quotient's accountregistry 2021-11-01 19:36:39 +00:00
Carl Schwan
14a358ed58 Fix cliping problems in room list when using multiple accounts
Before the rooms from the room list would go above the account selector,
making it not possible to switch accounts and creating weird visual
artifacts.
2021-10-11 18:35:13 +02:00
Tobias Fella
011cf3c652 Fix highlighted room when opening room from notification 2021-10-03 16:21:53 +00:00
Tobias Fella
3977aee4ba Remove usage of Kirigami.Units.devicePixelRatio
It's deprecated and as far as i can tell it doesn't really do anything
since it is always set to 1
2021-10-02 14:33:27 +00:00
Carl Schwan
f2215f10e2 Fix bug with room list header 2021-06-22 10:14:35 +02:00
Carl Schwan
d7345ee4e6 Unify look of scrolling setting page
* Add frame on desktop
* Remove frame on mobile
* Use actions.main when needed on mobile
* Don't push a new setting page on mobile
2021-06-17 13:05:16 +02:00
Carl Schwan
a086964769 Make sidebar collapsible 2021-06-14 12:50:09 +00:00
Carl Schwan
b37152ff89 Open room when pressing Enter or Return
Fix #381
2021-05-29 20:15:46 +02:00
Carl Schwan
d14674c2cd Fix minor bugs 2021-05-24 16:50:54 +02:00
Carl Schwan
8314e19cb1 Fix bugs in multi account setups 2021-05-07 03:03:09 +02:00
Carl Schwan
f5a42e64ee Don't create QNetworkReply for image size we will discard 2ms later 2021-05-07 02:34:16 +02:00
Mufeed Ali
7b1c5f5aab Fix chat list item padding 2021-05-06 21:26:54 +05:30
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
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
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
Srevin Saju
9932823ad3 feat: show the room name in bold if the room has unread messages 2021-04-07 17:10:45 +00:00
Carl Schwan
8e5ca78249 Fix selection in room list 2021-03-18 01:49:15 +01:00
Carl Schwan
8f1f02fa22 Use ItemSelectionModel to preserve room selection after sort
Fix #305
Fix #297
2021-03-17 18:51:17 +00:00
Devin Lin
17930e2e2c Use reuseITems for room list and don't have default highlighted room 2021-03-05 15:48:08 -05:00
Carl Schwan
63d05272fa Hide Avatars Setting - Hide them also in Left and Right sidebars
Fix #245
2021-02-26 14:29:54 +01:00
Tobias Fella
b689e55068 Refactor and cleanup dead qml 2021-02-07 22:34:07 +01:00
Tobias Fella
72907a1f18 Refactor and fix invitations
-Move invitation handling into RoomPage and delete InvitationPage
-Open the new room after accepting the invitation
2021-02-04 20:22:53 +00:00
Carson Black
07f637c854 Improve appearance of room listing
This ports the room list delegates to Kirigami.BasicListItem leading/trailing for a more consistent appearance with other applications, and adjusts how their context menus look and behave
2021-01-11 21:25:29 +00:00
Carl Schwan
4be3eac7af Fix avatar loading in multiple places and prefers name instead of
display name for avatar fallback.

This also fixes a bug where users didn't get their avatar loaded in the
room list.

Fix #209
2021-01-09 00:37:13 +01:00
Carl Schwan
cd1bec9977 Introduce the ActionsHandler 2021-01-08 23:12:09 +00:00
Carl Schwan
a929f7bca3 Move Header Collapse Button to the Right
Fix #191
2020-12-28 10:53:08 +01:00
Tobias Fella
724f10a895 Don't load empty images from imageprovider
Previously, when there was no avatar set, the source property of Avatar was still set to 'image://mxc/',
which caused Avatar to load that from the imageprovider. The imageprovider can't provide an empty image and aborts with error
2020-12-28 01:28:13 +01:00
Carl Schwan
5d80fdfcb6 Make the RightClick button works correctly 2020-12-16 16:28:42 +00:00
Tobias Fella
cbad7fbf51 Remove 'configure room' button from roomlist 2020-12-11 22:42:43 +01:00
Devin Lin
d5b21b837d Reduce sidebar clutter by shrinking text sizes and increasing spacing 2020-12-09 21:19:45 +00:00
Carl Schwan
ccdcf9a354 Fix tapping issue on room list 2020-12-06 19:30:14 +01:00
Carl Schwan
408b9eb057 Use long press on mobile for room list 2020-12-06 17:41:33 +01:00
Carl Schwan
aaa0024fd6 Add easy way to switch between accounts
Related to #121
2020-12-05 00:26:37 +01:00
Carl Schwan
b24af7c2f0 Fix room list 2020-12-03 22:39:35 +01:00
Carl Schwan
93cee871ba Fix regression: right click on room list items
Fix: #113
2020-12-03 17:19:36 +01:00
Carl Schwan
837f5dff09 Fix delegate not all having the same height in the room list
Fix: #112
2020-12-03 16:44:42 +01:00
Carl Schwan
de338607e3 fix typo 2020-12-02 19:19:13 +01:00
Carl Schwan
9472d5e417 Move back to abstrastlistitem for room list 2020-12-02 19:18:24 +01:00
Carl Schwan
722fc15368 Remove quick favorite action, this isn't an action often used 2020-12-02 18:51:51 +01:00
Carl Schwan
1296a688eb Improve allignement of dropdown in room list section delegate 2020-12-01 12:00:31 +01:00
Carl Schwan
2a0b6c74f3 Switch between room list items with standard tab switching keyboard
shortcuts

Ctrl+PgUp/PgDn and Ctrl+Tab/Ctrl+Shift+Tab

Fix #66
2020-11-27 23:43:11 +01:00
Carl Schwan
6bb3821039 Fix color diferenciation between highlight and unread pills
Fix: #87
2020-11-27 22:04:33 +01:00
Carl Schwan
feebc7678a Fix wrong color for room pill when mentioned
Fix: #81
2020-11-27 12:34:20 +01:00