Commit graph

360 commits

Author SHA1 Message Date
Maximiliano Sandoval R
61ae6820ac
message_audio: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
6cc917f3c3
invite_subpage: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
09b4b08d8d
room_history: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
c8d3d67d81
content_explore: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
ef368e740a
media_content_viewer: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
ada8a79ca3
action_button: Stop spinners when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
56b78a4d36
window: Stop spinner when idle 2023-04-10 16:37:20 +02:00
Maximiliano Sandoval R
36f50ab260
spinner_button: Stop spinners when idle 2023-04-10 16:37:19 +02:00
Kévin Commaille
3541be94eb
session: Create JoinRoomDialog instead of building it in Session 2023-04-10 10:54:57 +02:00
Kévin Commaille
26222e2b24
room-history: Don't access GtkListItemWidget
Don't set CSS classes and bind to RoomHistory properties
2023-04-05 12:43:07 +02:00
Kévin Commaille
d4b74e00bd
sidebar: Don't set GtkListItemWidget CSS classes 2023-04-05 11:42:34 +02:00
Kévin Commaille
1470dcf92c qr-code: Remove uses of deprecated GtkStyleContext 2023-03-26 12:47:23 +00:00
Kévin Commaille
64d9a98f0b chore: Replace deprecated GtkInfoBar with AdwBanner 2023-03-26 12:47:23 +00:00
Kévin Commaille
b4c27f9e4b room-details: Silence critical when topic is None 2023-03-23 10:53:04 +00:00
Kévin Commaille
314415f4c2 room-details: Refactor code to change details
Use bindings, template callbacks. Expose the errors via toasts.
2023-03-23 10:53:04 +00:00
Kévin Commaille
beb9dd4e91 room-details: Use EditableAvatar 2023-03-23 10:53:04 +00:00
Kévin Commaille
f9b09cea25 components: Simplify the API of EditableAvatar 2023-03-23 10:53:04 +00:00
Kévin Commaille
3310c49c67 room-details: Allow to display toasts 2023-03-23 10:53:04 +00:00
Kévin Commaille
758a8f99cd
room-history: Show highlighted events 2023-03-14 16:10:47 +01:00
Kévin Commaille
eedc456ddd
room-history: Mark replied to event as selected not highlighted 2023-03-14 14:23:53 +01:00
Tobias Bernard
9e964c0ca2 app icon: minor style and polish updates, add source svg 2023-03-13 10:07:48 +01:00
Kévin Commaille
a48b8ea5f4 room-history: Display an icon when a message has been edited 2023-03-12 16:18:17 +00:00
Kévin Commaille
d6e5f60b84
room-creation: Use AdwEntryRow and other fixes
It would not be possible to create a private room without entering a
room address
although it's not used in that case.
2023-03-07 11:34:28 +01:00
Kévin Commaille
0e3d46237a
room-history: Show read receipts on events 2023-03-07 09:36:55 +01:00
Kévin Commaille
541e94e1bd
components: Use a GListModel to manage OverlappingBox children 2023-03-07 09:20:58 +01:00
Harshil Patel
1715f27472 room-history: Remove search-content button from headerbar
closes GNOME/fractal#1145
2023-02-16 15:33:56 +05:30
prathamgupta44
22bb04d440 room-details: Fix contrast of room name and description on room-details page
Have fixed the contrast of room name and description on room-details page by changing the opacity of the respective widgets.

Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/1138
2023-02-15 11:00:20 +00:00
Julian Sparber
11b80862d1 account-settings: Add entry and subpage to confirm log out
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/823
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/1083
2023-02-14 08:56:43 +00:00
Marco Melorio
5bfdeb449c media-viewer: Implement animated back swipe 2023-02-13 20:01:03 +00:00
Marco Melorio
4efb8f2804 media-viewer: Make it dark and animated
Fixes https://gitlab.gnome.org/GNOME/fractal/-/issues/1019.
2023-02-13 19:56:28 +01:00
Marco Melorio
00d5d6f02c media-viewer: Add scale transition for opening and closing 2023-02-13 19:56:28 +01:00
Marco Melorio
8991a4d838 session: Move MediaViewer in a GtkOverlay
This way we can implement an overlay animation in the next commits. This
currently makes the MediaViewer have a transparent background. This will
be fixed in the next commits.
2023-02-13 19:56:28 +01:00
Marco Melorio
b04eff6c81 room-history: Move item activation code to MessageRow
The previous way of tracking message activation was via `GtkListView`'s
"activate" signal, which was not ideal since it required a complicated
management of each items' "activatable" property. This new
implementation is simpler since it just adds a `GtkClickGesture` to the
message rows that require activation and it handles the activation in
the `MessageRow`. This is also useful for implementing a media viewer
opening animation (which is planned in the next commits) because we can
retrieve the actual widget of the media widget being pressed, which was
not possible previously.
2023-02-13 19:56:27 +01:00
Harshil Patel
99669d258f room-history: Reorganize buttons of message composer
Fixes GNOME/fractal#1033
2023-02-13 16:07:17 +00:00
Paul van Tilburg
ceaf71fcb2
room-history: Replace pill by display name in reply quote
The pill in the reply quote attribution (related content sender) turns
out to be confusing as it looks like a mention. Use the same style as
for the display name in a content message row. The fact that it is in a
quoted block makes it less pronounced and thus more clear.

Also use a binding so the user's display name updates if the user
changes it.
2023-02-02 21:32:08 +01:00
Pratham Gupta
0cd31876e1 shortcuts-window: Add missing accels for keyboard actions 2023-02-02 10:20:46 +00:00
Kévin Commaille
746edd98ad account-settings: Fix crash on opening
Regression introduced in !1210
2023-01-07 14:30:41 +00:00
Tobias Bernard
e1fbf9a045 empty-page: update icon to new symbolic style 2023-01-04 12:05:30 +00:00
Tobias Bernard
3d53755510 device list: add min width to log out button 2022-12-27 17:58:16 +01:00
Harshil Patel
13d28d4218 Window: Add functinality to save and restore active session 2022-11-30 23:19:37 +05:30
Kévin Commaille
b73c149a22
session: Add action to copy an image in event's context menu 2022-11-08 15:03:29 +01:00
Kévin Commaille
4a31e667a3
session-verification: Display the Matrix User ID as the title of the window 2022-11-08 12:07:05 +01:00
Kévin Commaille
dbf73de01d
verification: Don't complete session verification if cross-signing keys are missing 2022-11-08 12:07:04 +01:00
Kévin Commaille
fe01193769
verification: Make label IDs more explicit 2022-11-08 10:39:42 +01:00
Kévin Commaille
bbe284554a components: Use GstPlay instead of GstPlayer for video player 2022-11-06 09:43:54 +00:00
Kévin Commaille
dffcc460cc
account-settings: Add basic notifications settings page 2022-11-05 10:31:52 +01:00
Kévin Commaille
7301d3ff6e
room-history: Display and send typing notifications 2022-11-05 09:30:53 +01:00
Kévin Commaille
0487df15ab login: Split in pages and cleanup 2022-10-11 13:33:41 +00:00
Kévin Commaille
27e96f4acb
room-history: Add an icon to files in replies 2022-10-11 14:16:54 +02:00
Kévin Commaille
19d5f87e48
room-history: Fix corners of media messages in replies 2022-10-11 14:16:49 +02:00
Kévin Commaille
f0e5d97684
account-settings: UI fixes 2022-10-10 12:49:39 +02:00
Kévin Commaille
6e82ea2f60
account-settings: Use AdwPasswordEntryRow 2022-10-10 12:49:35 +02:00
Kévin Commaille
4270577625
account-settings: Don't use AdwPreferencesPage when not needed 2022-10-10 12:49:04 +02:00
Kévin Commaille
5d7d49a973 session: Allow to join a room by ID, alias or permalink 2022-10-07 17:10:40 +00:00
Kévin Commaille
0232d98dc1
explore: Allow to explore custom matrix servers 2022-10-05 16:37:51 +02:00
Paul van Tilburg
76ddc9c45a
room-history: Show location viewer error when geo URI parsing fails
This is only used for displaying locations. When previewing/sending a
location, it is assumed to be valid, so no error overlay is necessary.

* Pass a `GeoUri` object to the `LoctionViewer` and `MediaContentViewer`
  instead of a geo URI string so it is known to be valid
* Wrap the `LocationViewer` component in a `GtkOverlay` in the
  `ContentMessageLocation` component that can overlay an error message
  over the location viewer if coordinate parsing fails
2022-10-05 08:44:06 +02:00
Kévin Commaille
4e355341a3
content: Fix unwanted rounded corners in location preview 2022-10-02 17:32:07 +02:00
Kévin Commaille
00b8bcc83a
login: Add message for translators 2022-09-28 18:37:35 +02:00
Kévin Commaille
3d12e38336
misc: Ensure UI files use enum variant short name consistently 2022-09-28 16:41:46 +02:00
Kévin Commaille
6ae4c6e846
login: Mark strings as translatable 2022-09-28 16:41:00 +02:00
Kévin Commaille
a190f17ea3
account-settings: Mark strings as translatable 2022-09-28 16:26:39 +02:00
Kévin Commaille
77c9c73175
components: Remove EntryRow 2022-09-28 15:29:11 +02:00
Kévin Commaille
ef7010d950
session-verification: Use AdwPasswordEntryRow 2022-09-28 15:29:02 +02:00
Kévin Commaille
09df14ed16
login: Use AdwEntryRow and AdwPasswordEntryRow 2022-09-28 15:28:46 +02:00
Kévin Commaille
0b9519e370
account-settings: Use AdwEntryRow 2022-09-28 15:25:21 +02:00
Julian Sparber
a2e9ee4c57 Add release notes and update version 2022-09-25 19:33:26 +02:00
Kévin Commaille
a3374872c3 verification: Use the Matrix spec i18n data for emoji names 2022-09-24 15:24:00 +00:00
Kévin Commaille
8dd205ffce account-settings: Allow to import and export room encryption keys
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1157>
2022-09-24 09:54:57 +00:00
Kévin Commaille
e35c2b4464
room-history: Allow to send replies 2022-09-15 18:03:58 +02:00
Kévin Commaille
8127a52199
message-row: Allow to embed messages content preview
Provide a more compact format for message content.
2022-09-15 18:02:34 +02:00
Julian Sparber
988e6bf1c9 room-details: Move general page to own subclass 2022-09-15 14:09:38 +02:00
Julian Sparber
ac86979c01 invite: Improve wording on status pages 2022-09-15 14:09:38 +02:00
Julian Sparber
15bda14f05 room-details: Rework navigation and fix listview styles
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/900
2022-09-15 14:09:38 +02:00
Kévin Commaille
f8e9147f7d
room-history: Implement mention of users in the message entry
Show a popover triggered by the character `@` or the `Tab` key.
2022-09-15 11:17:43 +02:00
Kévin Commaille
c5d696e600
components: Fix alignment of Pills in GtkTextViews
Fixes #880
2022-09-15 11:14:01 +02:00
Julian Sparber
9604fb9bd0 room-history: Remove open action for files
Some files could contain malicious code. E.g. htm/html files can contain
an explode to take over a web browser. This makes it a little bit harder
to open a file by mistake.

Note: this resolves a security issue that was identified by the security
audit.

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1153>
2022-09-15 07:49:14 +00:00
Julian Sparber
99911c3fcf sidebar: Fix oscillating scrollbar when hovered at the right place
This is a hack to fix this till the upstream bug is resolved.
See: https://gitlab.gnome.org/GNOME/gtk/-/issues/4938

Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/925
2022-09-14 12:13:02 +02:00
Julian Sparber
7ffbf9849f room-history: Show selection when context menu is open
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/938
2022-09-09 12:20:13 +02:00
Kirill Schmidt
425891310f room-history: Implement Permalink creation for rooms
Enhances #891

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1146>
2022-09-03 20:31:01 +00:00
Kirill Schmidt
ae2f430917 event-actions: Implement Permalink creation for Events
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1146>
2022-09-03 20:31:01 +00:00
Kévin Commaille
ac96a7546a misc: Improve appstream metadata
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1145>
2022-09-03 16:52:48 +00:00
Kévin Commaille
69b6b57906 misc: Reorganize metainfo
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1145>
2022-09-03 16:52:48 +00:00
Harshil Patel
546dae1e4f room-history: Increase message line height
Unfortuntely line height on multi-height labels is way too tight by default in GTK4, so we need to work around it in apps.
One very visible instance of this is the message bodies in the timeline.

I fixed issue by adding css line-height property on .room-history row css class.

https://gitlab.gnome.org/GNOME/fractal/-/issues/1030

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1141>
2022-09-02 18:49:06 +05:30
Daniel Maloschik
92e3aeb97b Make the account switcher check smaller 2022-08-31 08:04:25 +00:00
Harshil Patel
0ccaad6375 room-history: Make text reactions smaller
data/resources/style.css: Added class for font on applying reaction
src/session/content/room_history/message_row/reaction.rs: Added check if reaction contains text or not
src/utils.rs: Added regex function for general purpose

Even if it's their primary use in clients is to send emoji reactions, reactions can actually contain any text.
We have to make sure that we ellipsize long texts, and we need to fix the font as it's currently too big.

To fix this issue, I used regex function to check whether reaction contains text or not.

https://gitlab.gnome.org/GNOME/fractal/-/issues/1044

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1134>
2022-08-23 12:31:19 +00:00
Julian Sparber
d61a6e93ea explore: Improve styling 2022-08-16 11:50:29 +00:00
Julian Sparber
d82c1e21a3 window: Show network state on the loading page 2022-08-16 12:19:38 +02:00
Julian Sparber
44c96d3d4c login: Show network state
This only disables navigation when no network is available, since the
homeserver may be on a local network.
2022-08-16 12:19:38 +02:00
Julian Sparber
8a6a209f54 session: Mark offline when homeserver isn't reachable
This also shows a infobar to the user when offline.
This completely ignores the connecticity state since it's unrelaibale
and the server may be reachable even without internet connection.
2022-08-15 13:55:46 +02:00
Kirill Schmidt
ac03df8db8 invite-subpage: Allow inviting users by id to a room
Fixes #879 #1062
2022-08-13 15:05:37 +02:00
Julian Sparber
d076bd2441 toast: Use libadwaita toast
Fixes: #857, #967
2022-08-03 12:31:39 +02:00
Kirill Schmidt
f5b12387fe event-actions: Implement save for media files
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1115>
2022-07-05 10:29:16 +00:00
Marco Melorio
f7f65d3e93 qr-code: Make it always black-on-white
Also add .card style. Fixes #1052.
2022-06-16 06:59:31 +00:00
Kévin Commaille
e7de31ffa6
sidebar: Remove "Preferences" entry from main menu
There are no general preferences available or planned for now
and it is misleading for users.
2022-06-04 11:43:53 +02:00
Jacob Hughes
6331bf022e attachment-dialog: Set default focus to send button 2022-05-26 15:30:38 -04:00
Julian Sparber
f8263c003b room-details: Improve UI for name and topic in edit mode
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/921
2022-05-20 13:24:04 +00:00
Tobias Bernard
feab9a5011 sidebar: 2px margin between rows
This avoids rows blending together when hovering a row next to the
active one.
2022-05-16 08:28:29 +00:00
Tobias Bernard
16c270ad94 Sidebar: use currentColor for notification count
This fixes the broken bubbles in dark mode.
2022-05-16 08:28:29 +00:00
Tobias Bernard
e31690bee3 sidebar: tighter row spacing 2022-05-16 08:28:29 +00:00
Tobias Bernard
dd61665a96 sidebar: larger avatar in headerbar 2022-05-16 08:28:29 +00:00