Commit Graph

52 Commits

Author SHA1 Message Date
Bharadwaj Raju
2a2c117ac1 Use selected text colors from theme
When using Breeze light:

| Before | After |
| ------ | ------ |
| ![Screenshot_20220913_005141](/uploads/9b15c79acaaa92e23855def9ca6bc6ab/Screenshot_20220913_005141.png) | ![Screenshot_20220913_005049](/uploads/06cb614edae21f7ddb027bebaf732edc/Screenshot_20220913_005049.png) |
2022-09-12 20:34:47 +00:00
Tobias Fella
274bf824e3 Don't quote property names 2022-09-09 00:23:18 +02:00
James Graham
828032ba06 RoomDrawer Cleanup
This started off as me just wanting to adjust the margin of the search bar but grew a touch ...

- Cleanup margins especially make the member search bar have the same padding as everything else
- Move room information title to header and align all buttons right.
- Make the room name actually bold
- Remove highlight from the user list item after the menu is closed
- Always use actual width so that the drawer isn't wider when modal
- Use control instead of pane for the search bar as the padding works more consistently
- Use BasicListItem instead of AbstractListItem for the member list as this has the layout predefined

![image](/uploads/ab2c4066479b0510bcb2fe6ae91f7bc3/image.png)
2022-09-08 17:30:58 +00:00
Tobias Fella
fead1a69b3 QML warning-- 2022-08-23 21:22:02 +02:00
Nate Graham
619369e148 Add hackaround for Qt bug to all non-horizontally-scrollable scrollviews
https://bugreports.qt.io/browse/QTBUG-83890 has been open for years with
a patch that's been stalled for years. There's no indication that it's
going to be fixed anytime soon, and it generates bug reports for us.
Let's add the typical hackaround for all non-horizontally-scrollable
scrollviews.

BUG: 457584
2022-08-08 15:02:09 -06:00
Nicolas Fella
722aa422e7 Fix activating browser windows on Wayland
QDesktopServices::openUrl does not have XDG activation support yet so it can't raise an existing browser window when opening URLs

Instead use KIO::OpenUrlJob, which does support that
2022-07-05 22:55:12 +00:00
James Graham
90cee0f437 Clear the text from the user list filter in the room drawer when the room is changed 2022-06-17 18:59:33 +01:00
James Graham
db5e328869 Add automatic room sidebar hiding option
Add menu option to change whether the room information drawer is opened automatically or not. This also adds some code to switch off the dim effect during the first animation after modal is changed as this looked bad.

Implements network/neochat#243

Slight cleanup removing the edge option for context drawer from main.qml as this is duplicated from RoomDrawer.qml
2022-06-01 20:09:47 +00:00
Carl Schwan
0801b815c8 Make room address selectable
Help with #469
2021-12-25 15:33:26 +01:00
Tobias Fella
e551319245 Don't render html in RoomDrawer heading 2021-12-14 15:54:14 +01:00
Carl Schwan
a146fab5a0 Fix color of Pane in room info drawer
This is temporary hack and the real solution is to add a Pane
implementation in qqc2-desktop-style
2021-10-23 20:33:34 +00:00
Carl Schwan
6c3ae87340 Support resizing right drawer
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-21 23:04:52 +02:00
Carl Schwan
890860df92 Improve room setting
* Port away from OverlaySheet
* Use Kirigami.CategorizedSettings
* Add join rules (read only for now)
2021-10-21 20:00:50 +00:00
Tobias Fella
1d7c20e1c7 Make user list search case insensitive 2021-10-16 18:18:07 +00:00
Tobias Fella
b22ebf3671 Show number of joined users instead of joined+invited users in room drawer 2021-10-16 19:28:51 +02:00
Milo Kerr
e064243d66 Adds the ability to show avatars in the sidebar independently of whether they are shown in the chat area.
Fix #408
2021-08-11 20:33:56 +00:00
Carl Schwan
807112fb19 Don't steal focus in panel search field 2021-05-30 00:06:16 +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
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
Carl Schwan
7e778d225b Lazy load room drawer by putting it in a Loader 2021-04-27 19:24:51 +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
52f87d6344 Actually fix a QML error 2021-04-08 12:54:46 +02:00
Tobias Fella
86c43ce169 Remove more QML errors 2021-04-08 12:42:58 +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
Carl Schwan
32f3748ced Fix pannel padding on Android 2021-03-18 02:01:50 +01: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
Arnav Rawat
b84375749b Close menu after selecting a reaction
Fixes #256
2021-02-10 10:33:35 +00:00
Tobias Fella
f7cbb876f0 Make room topic in RoomDrawer readOnly 2021-01-20 15:17:10 +01:00
Christopher Hock
3ac85bacad Change color of role description to light grey. 2021-01-13 21:45:49 +00:00
Carl Schwan
2cb38ad1ea Add filter search field in room drawer
Fix #195
2021-01-09 01:02:19 +01: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
c60ee602e2 Add maximum width to room heading in sidebar 2020-12-30 14:18:33 +00: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
b4e528b047 Remove old code 2020-12-23 23:11:23 +00:00
Carl Schwan
3fcb40f9dd Fix invite page closing the wrong page
This fix #150
2020-12-19 11:47:05 +01:00
Carl Schwan
049a1b3528 Make drawer text selectable
Fix bug #140
2020-12-15 17:57:55 +01:00
Tobias Fella
24fac27a7f Get rid of Neochat.Effect 2020-12-15 17:57:55 +01:00
Carl Schwan
5b39cd4ae8 Don't close drawer on wideScreen 2020-12-03 14:40:34 +01:00
Carl Schwan
eba2b18ba9 Redesign information pannel
Based on a design of manueljlin
2020-12-03 12:25:18 +01:00
Carl Schwan
1d5f1633bd Sort users by permission 2020-12-02 18:03:18 +01:00
Carl Schwan
1d19213d4f Fix typo in Room Settings 2020-11-22 11:24:08 +01:00
Carl Schwan
f4f0211383 Simplify layout 2020-11-19 09:26:36 +01:00
Carl Schwan
3a6f1da1f9 Fix remaining issues with RommDrawer 2020-11-18 17:17:43 +01:00
Carl Schwan
d6c5373f6a Fix issues with RommDrawer on mobile 2020-11-18 16:52:17 +01:00
Carl Schwan
8e52f645a2 Remove more old MPalette stuff 2020-11-17 11:21:56 +01:00
Carl Schwan
28c965a40d Use a page for invitation instead of popup
This generally work better on a mobile device
2020-11-16 22:45:41 +00:00
Carl Schwan
eba4d874df Improve Room Drawer
This fix the bug of it not getting the right data and improve the look
signically.
2020-11-16 14:27:44 +01:00
Tobias Fella
2a0f89bab0 Remove unused qml files 2020-11-11 22:28:52 +01:00
Tobias Fella
3a70a9d91c Set all internal qml versions to 1.0
They're useless and anything else just causes problem
2020-11-11 20:14:43 +01:00
Tobias Fella
d8dde6e082 Add license headers to code files 2020-11-11 15:17:23 +00:00