Commit graph

360 commits

Author SHA1 Message Date
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
Kévin Commaille
7592994a96 message-location: Move location view logic in LocationViewer component
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1085>
2022-04-27 12:58:17 +00:00
Kévin Commaille
74b5b025e2 attachment-dialog: Use MediaContentViewer
Preview more file types

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1085>
2022-04-27 12:58:17 +00:00
Kévin Commaille
c216e78edf media-viewer: Split media content display logic into MediaContentViewer
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1085>
2022-04-27 12:58:17 +00:00
Julian Sparber
311ffd55c3 sidebar: Add category people
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/931>
2022-04-27 13:40:28 +02:00
Julian Sparber
534d2bcec3 sidebar: Improve context menu entires
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/931>
2022-04-27 13:40:28 +02:00
Kévin Commaille
e5c97c2517 sidebar: Bundle expander arrow and update behavior
The icon and its behavior has been changed upstream.

Bundle it so we don't have inconsistent behavior if it is updated upstream again.
2022-04-26 12:40:01 +00:00
Kévin Commaille
1614ce9179 verification: Move in-room verification outside of Timeline 2022-04-26 09:10:06 +00:00
Kévin Commaille
dc04e0e714
room-history: Swap "emoji" and "more" buttons next to message entry 2022-04-23 11:19:48 +02:00
Kévin Commaille
b65188cdb6 misc: Create developers flatpak variant
Be able to use nightly while hacking
2022-04-20 08:17:04 +00:00
Marco Melorio
89b89024c9 window: Add a global paste action to paste media
Now it's possible to paste an image even when the message entry is not focused.
2022-04-20 08:03:51 +00:00
Julian Sparber
e069053cda session: Replace listview with listbox in AccountSwitcher
This reworks the entiere account switcher.

Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/931
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/898
2022-04-19 20:04:51 +00:00
Kévin Commaille
5ac882eaa1
context-menu-bin: Fix non-working actions
Destroying the popover on close results in the action not being
called.

Instead do like the members list and keep a single popover for the
whole list. To do that we need to pass a weak reference to the
closest common parent of the list items, via the list view factory.
2022-04-13 18:22:53 +02:00
Julian Sparber
c11393e3f6 session: Improve accessibility and focus
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/197

Room history navigation isn't good yet, but this improves navigation by a lot.
2022-04-13 15:22:33 +00:00
Bilal Elmoussaoui
d5749f75a4 Room history: Send/display static location events
Fixes #952
2022-04-13 13:00:26 +00:00
Bilal Elmoussaoui
40ca58a34d Room history: Add an emoji selection button
It basically triggers the CTRL+. behaviour
2022-04-12 09:39:19 +00:00
Kévin Commaille
6a705f40e1 login: Improvements for small screens
Part of #868
2022-04-11 09:05:40 +00:00
Kévin Commaille
5de88e83ff
i18n: Add formatting i18n methods compatible with xgettext 2022-04-06 19:17:39 +02:00
Julian Sparber
eae7359285 context-menu-bin: Create popup only when needed
This reduces the time needed to build a Sidebar::RoomRow and
RoomHisotry::MessageRow, by a sinificant amount.
2022-04-06 13:43:38 +00:00
Alexandre Franke
e90312fb87 Improve wording 2022-04-05 12:50:10 +00:00
Alexandre Franke
a3e588c78e Use proper quotes in strings 2022-04-04 09:03:22 +00:00
Alexandre Franke
296dd710f5 Improve text for upgraded rooms 2022-04-04 08:51:48 +00:00
Alexandre Franke
a89c23e5cf Improve strings 2022-04-02 19:19:57 +00:00
Kévin Commaille
a5a299ccdf sidebar: Fix outline glitch on Explore
Fixes #970
2022-04-02 13:16:00 +00:00
Anders Jonsson
bfcb14809a Fix typos in translatable strings 2022-04-02 12:24:56 +02:00
Georges Basile Stavracas Neto
3613d61536 content-explore: Make clamp size match chat history's
Having the width of the Explore page different than the widget of
the chat history is jarring, let's make them match.
2022-04-01 14:11:28 +00:00
Georges Basile Stavracas Neto
3b9d5b9c00 content-explore: Remove extra clamp
There is a clamp inside a clamp here, one of which has maximum size
of 800. The inner clamp negates that.

Remove the inner clamp.
2022-04-01 14:11:28 +00:00
Georges Basile Stavracas Neto
d7e89d516f content-room-history: Increase clamp sizes a bit
But not too much.

These values are somewhat arbitrary, but they make Fractal's chat
history average between 65~80 characters wide on default GNOME with
Cantarell. This seems to make it much more pleasant to use.
2022-04-01 14:11:28 +00:00
Georges Basile Stavracas Neto
0cdac386ce content-message-row: Use 'caption' CSS class
Instead of 'heading'. The original mockup [1] seems to have this label
much more subtle, and definitely not bold.

[1] https://gitlab.gnome.org/Teams/Design/app-mockups/-/raw/master/fractal/main-window.png
2022-04-01 14:11:28 +00:00
Georges Basile Stavracas Neto
2e9c827565 content: Remove right margin for event-content
This was originally introduced at fc02302620 to match mockups, but
seems to be better without.

Also adjust the CSS selector below to have them matching on RTL.
2022-04-01 14:11:28 +00:00
Yuri Chornoivan
25faa63863 Fix minor typos 2022-04-01 12:19:59 +00:00
Kévin Commaille
3d8fe3912f build: Fix variable name in metainfo 2022-03-31 09:24:58 +00:00
Kévin Commaille
9968d724f0 build: Add develoment version to metainfo
Fixes the version of the flatpak bundle
2022-03-31 09:24:58 +00:00
Julian Sparber
a73ff67be4 Copy and update metainfo from master 2022-03-30 15:15:10 +02:00
Julian Sparber
c6b5b226b7 Use desktop file from master 2022-03-30 14:36:28 +02:00
Julian Sparber
0bf6a4ff32 Remove Next from app-id 2022-03-30 14:36:28 +02:00
Kévin Commaille
73c9d51ea8
login: Use EntryRow and PasswordEntryRow 2022-03-28 17:45:48 +02:00
Kévin Commaille
c1a97472b4
login: Move to its own module 2022-03-28 17:45:47 +02:00
JCWasmx86
d8e58a76aa login: Add SSO support 2022-03-22 15:45:22 +01:00
Maximiliano Sandoval R
ec2852dc90 Make a drag and drop overlay widget 2022-03-22 14:25:25 +00:00
Maximiliano Sandoval R
57b2640035 Implement attachments
With drag and drop.

Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/121, https://gitlab.gnome.org/GNOME/fractal/-/issues/764.
2022-03-22 14:25:25 +00:00
Julian Sparber
40a77bd6f6 verification: Ask for confirmation after scanning 2022-03-21 12:22:35 +01:00
Kirill Schmidt
3bd9afe788 device-row: Use Log Out for current session
device-row: Add is-current-device property
device-row: Implement Logout and check current device
mod: Set is-current-device-property to true
2022-03-07 08:46:30 +01:00
Kévin Commaille
60a0207ee2
secret: Switch to libsecret 2022-02-25 12:06:39 +01:00
Kévin Commaille
5c8c627cec
account-settings: Add General tab 2022-02-25 09:19:26 +01:00
Kévin Commaille
577f582b6e
components: Create ButtonRow 2022-02-25 09:19:26 +01:00
Kévin Commaille
7bf16d34f5
components: Create EntryRow and PasswordEntryRow 2022-02-25 09:19:26 +01:00
Kévin Commaille
6dc9084ec7
components: Create EditableAvatar 2022-02-25 09:19:26 +01:00
Kévin Commaille
c7de7eb431
components: Create ActionButton 2022-02-25 09:19:26 +01:00
Kévin Commaille
953466029d app: Show spinner by default instead of greeter 2022-02-23 17:07:14 +00:00
Kévin Commaille
757373f87b app: Rename Error to Toast and move to components 2022-02-23 16:42:50 +00:00
Julian Sparber
762973ce19 room-history: Show error page on loading errors
This only shows the error page when the timeline is empty.
Adds also a enum for the timeline state.
2022-02-14 20:28:44 +01:00
Daniel García Moreno
5f06500e08 Set wrap property in mesage_entry
Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/895
2022-02-09 18:30:27 +00:00
Kévin Commaille
3079b7faca
room-history: Show audio messages in timeline 2022-02-03 11:36:50 +01:00
Julian Sparber
687fcb51d0 qr-code-scanner: Add round corners to video 2022-02-02 16:47:21 +00:00
Julian Sparber
b73b504390 verification: Drop screenshot support 2022-02-02 16:47:21 +00:00
Julian Sparber
d2f8f105ec qr-code-scanner: Use a singleton to access the Camera
This also adds a no-camera page.
2022-02-02 16:47:21 +00:00
Kévin Commaille
f4611d73bb
login: Add auto-discovery of homeserver
Also check if the url provided is a valid homeserver.

Closes #769
2022-02-01 14:24:58 +01:00
Kévin Commaille
ae66b8045a
greeter: Fix devnotice 2022-02-01 14:24:58 +01:00
Kévin Commaille
2296036d4a
data: Move non-icon SVGs to assets 2022-02-01 14:24:58 +01:00
Kévin Commaille
74cf22df84
app: Separate greeter and login screens 2022-02-01 14:24:57 +01:00
Kévin Commaille
bdfd69c64d
login: Replace custom button with SpinnerButton 2022-02-01 14:24:57 +01:00
Julian Sparber
5a49bfc173 explore: Replace .content style with .card 2022-02-01 09:55:47 +00:00
Kévin Commaille
34f71ce741 members-page: Only show active members
Separate joined and invited in two lists
2022-02-01 08:36:53 +00:00
Kévin Commaille
cfe2fe0281
message-media: Use custom player
Allows to play media without sound.

Closes #881
2022-02-01 09:06:24 +01:00
Kévin Commaille
c0bd634ff9 style: Reorganize style.css 2022-01-30 10:35:56 +00:00
Kévin Commaille
6ee656706a style: Cleanup
Remove unused styles
Remove redundancies with libadwaita style
Always use named colors
Always use relative font-size
Use libadwaita styles as much as possible
2022-01-30 10:35:56 +00:00
Kévin Commaille
93a45ae4fd media-viewer: Use AdwFlap for headerbar 2022-01-24 14:57:19 +00:00
Kévin Commaille
f1e2efd865
resources: Sort files in resources.gresource.xml 2022-01-19 23:33:40 +01:00
Kévin Commaille
c2848743c7
app: Fix spelling mistakes 2022-01-19 23:33:40 +01:00
Kévin Commaille
0a47fb71a6
content: Add reaction chooser to context menu 2022-01-19 18:23:06 +01:00
Kévin Commaille
2582b0d9b1
content: Implement reactions
Closes #530
2022-01-19 18:22:27 +01:00
Julian Sparber
a9c10dd313 room-details: Show verified icon for members 2022-01-19 13:10:37 +01:00
Julian Sparber
34eebf1842 verification: Label cancel/decline btn based on state 2022-01-19 13:10:37 +01:00
Julian Sparber
f26413bf4d room-details: Add menu for members 2022-01-19 13:10:37 +01:00
Kévin Commaille
df46a36abb sidebar: Enable changing room category from context menu 2022-01-18 16:33:32 +00:00
Kévin Commaille
ec3f7cfeae sidebar: Enable changing room category with drag-and-drop
Part of #757
2022-01-18 16:33:32 +00:00
Kévin Commaille
411f26b441 sidebar: Fix color of RoomRow notification count 2022-01-18 16:33:32 +00:00
Kévin Commaille
9de599ed64 sidebar: Use GtkExpression for CategoryRow 2022-01-18 16:33:32 +00:00
Kévin Commaille
87d1fbd5ec sidebar: Use GtkExpressions for RoomRow when possible 2022-01-18 16:33:32 +00:00
Kévin Commaille
8980a03789 media-viewer: Remove context menu 2022-01-17 23:01:54 +00:00
Kévin Commaille
e8d7081ea9 media-viewer: Don't use same menu as room messages 2022-01-17 23:01:54 +00:00
Kévin Commaille
245e35de10 content: Show media messages in replies in a compact format 2022-01-13 18:41:49 +01:00
Kévin Commaille
cf7bc0c90c content: Add support for displaying rich replies 2022-01-13 18:41:49 +01:00
Julian Sparber
3fe920c342 verification: Use same widget for session and user verification
This makes the session verification widget use the idenity verification
widget as a base. This reduces code dupplication and hopfully
differences between the two implementations.
2022-01-13 14:50:16 +01:00
Julian Sparber
1d8de86b55 verification: Add InfoBar for user verifications 2022-01-13 14:50:16 +01:00
Kévin Commaille
f2752b2863 message-image: Improve fallback background color
Works for both light and dark themes.
2022-01-10 13:23:53 +00:00
Kévin Commaille
15c2803c70
message-text: Make emoji-only messages bigger 2021-12-25 10:42:05 +01:00
Kai A. Hiller
cd92949d13 content: Improve minimal height 2021-12-25 09:08:31 +00:00
Julian Sparber
15afbb7022 verification: Move widgets to content and rename some 2021-12-17 18:43:19 +01:00
Maximiliano Sandoval R
979ecdbb5a css: Fix SourceView and TextView styling 2021-12-14 12:55:36 +01:00
Maximiliano Sandoval R
8cc45669f9 source-dialog: Fix styling 2021-12-14 11:39:05 +00:00
Maximiliano Sandoval R
872601b13a Support dark mode 2021-12-14 11:39:05 +00:00
Kévin Commaille
78f0ae1f38
media-message: Handle media loading and errors 2021-12-13 17:49:48 +01:00
Kévin Commaille
33c0c034e4
message-row: Deduplicate code for media messages
Most of the code was shared between image and video.
2021-12-13 16:44:40 +01:00
Julian Sparber
b9f3143540 room-details: Create object for MemberRow 2021-12-13 14:11:31 +01:00
Kévin Commaille
8193be8e2c room-history: Show video messages in the timeline 2021-12-09 12:49:31 +00:00
Julian Sparber
7325740485 room-history: Replace show to invite members in menu 2021-12-09 02:26:53 +01:00
Julian Sparber
a2fd4de501 room-details: Implement user invitiation 2021-12-09 02:26:53 +01:00
Julian Sparber
0ce41fecf7 QrCodeScanner: Remove height-request and expand
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/876
2021-12-06 16:53:18 +01:00
Julian Sparber
5cc1235dcd content: Remove some uneeded halign 2021-12-06 16:52:48 +01:00