Commit graph

378 commits

Author SHA1 Message Date
Daniel García Moreno
eebfc9fdd5 Room notification setting
This patch adds a switch button to the room settings where you can
enable or disable notifications.

When the switch is disabled only mentions are enabled for this room.
When the switch is enabled the setting is set to always notify.

Because this is an on/off button there's no way to fine tuning
notifications, so it's not possible to set never-notify or something
different.

Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/199
2020-08-21 11:26:28 +00:00
Daniel García Moreno
be6501f923 Release 4.4.0 2020-08-07 10:28:36 +02:00
Alexandre Franke
c8ca4c53a1 Update release notes for 4.4 2020-08-07 09:18:37 +02:00
Alexandre Franke
5921e2b1ee media: add tooltip to fullscreen button
Fixes #272
2020-07-28 20:17:12 +02:00
Bilal Elmoussaoui
ab56037822 misc: use the nightly icon for devel
this also remove the desktop file suffix
as it's not needed to distinguish both versions anymore
2020-07-28 13:22:51 +02:00
James Westman
36ce8cd1cf media_viewer: Swipe to navigate
Adds a swipe gesture to navigate back and forth in the media viewer.

Also removes the scrolled window and viewport, since they aren't necessary.
2020-07-16 16:16:51 -05:00
Juraj Fiala
16bed11123 fractal-gtk: message widget: Mark edited messages 2020-07-02 10:36:02 +00:00
João Vieira
505597a4b6 Add the open main menu shortcut to the help dialog 2020-06-14 11:32:17 +01:00
Daniel García Moreno
bf685d0fd0 directory: Use server_chooser_popover just once
It's not recommended to use the same gtk::Popover object attached to two
different gtk::MenuButton because the popover has a parent and has an
attached to to place it correctly and having this object attached to two
different buttons causes some misplacements.

This patch changes the layout to use the HdySqueezer inside the
MenuButton, this way we only have one menu button with two layouts
instead of two different MenuButtons.

This should fix the wrong placement of the directory popover.
2020-05-19 19:13:33 +02:00
David Heidelberg
eae019e2d1
fractal-gtk/res: rename appdata to metainfo
Appstream nowadays prefers `.metainfo.xml`:
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
2020-05-15 14:40:28 +02:00
Jakub Steiner
c13429415b icon: adjust app icon
- minor adjustments to the grid fit, border radius and shading
- add Devel variant (needs build hooks to be used)

Addresses https://gitlab.gnome.org/GNOME/fractal/-/issues/616
2020-05-11 09:47:47 +00:00
David Heidelberg
27a6d4db6f fractal-gtk: add helper text to Join room dialog UI
Since spec #room:server is not so widely used, I propose to add
placeholder text, which can help newbies to make less mistakes.

In future, Fractal could check syntax directly and grey-out Join button
and colorize input field to warn about incorrect URL.

Signed-off-by: David Heidelberg <david@ixit.cz>
2020-04-24 06:54:28 +00:00
Juraj Fiala
c9ac3c0cee Add send button 2020-04-20 08:57:58 +00:00
Kai Hiller
23ec33369c app.css: Remove Gtk-WARNINGs 2020-03-10 13:31:56 +00:00
Sonja Heinze
8ec00cfc9f Assimilate room context menus
Before, the three dot context menu button in the media viewer only provided
the option "Save as". Now, it provides the same popover, right click on
the corresponding media widget in the room history does. That is the
same popover as the one the three dot context menu button of videos in
the room history provides.
2020-03-06 02:33:53 +01:00
Sonja Heinze
2005b009a9 Display file name of audio messages
With this commit, the file name of an audio message gets displayed above
the audio player.
2020-02-21 07:08:38 +00:00
Sonja Heinze
151045379c Improve styling of videos in media viewer
This commit implements the design/styling improvement ideas of issue #581
that concern the video player in the media viewer.
2020-02-13 07:29:04 +00:00
Adrien Plazas
97c1612c58 main_window: Allow swiping back when folded
This makes going back to the rooms list more comfortable on phones.
2020-02-10 10:08:32 +00:00
Adrien Plazas
546b3c831b main_window: Use the 'over' leaflet transition
This is a new transition and the recommended one for this case.
2020-02-10 10:08:32 +00:00
sonjita
3640d6469e Improve design of video messages in room history
This commit fixes the right click context menu options for videos. Now,
it contains "Reply", "Open With...", "Save Video As", "View Source" and
"Delete Message".

Furthermore, the auto video play widget of video messages in the room
history gets overlayed with
- a play icon in the center
- a message context menu button on the top right. On click, it opens
a popover. That popover contains the same options as the right click
context menu popover.
2020-01-27 10:46:31 +01:00
Alexandre Franke
65a40d4fb0 Update release notes for 4.2.2 2019-11-27 22:21:53 +01:00
Alex Monday
f0e6e408d3 app.css: Use opacity for .direct-chat icon instead of hardcoded color 2019-11-06 07:22:23 +00:00
Christopher Davis
d5214a1d5e fractal-gtk: Send redaction events
When moving our architecture to using GAction, the delete
action was forgotten. This meant that while "Delete Message"
showed in the UI, the button did nothing.

Fixes #515
2019-10-26 01:09:42 -07:00
Bilal Elmoussaoui
c48bbaabef GSchema: fix schema path typo
This will cause a reset to all the user's settings.
2019-09-23 07:10:10 +00:00
Daniel García Moreno
9d9bb35d42 New release 4.2.1 2019-09-21 08:58:13 +02:00
Daniel Pauls
37ea7c77aa autocompletion-popover: Fix misplacement on small window widths
Currently the autocompletion-popover has a margin-left in its stylesheet
which does look misplaced if the window has a small width.

To fix this remove the left margin of the autocompletion-popover once the
transition between the 'narrow' and 'non-narrow' mode happens.

Fixes https://gitlab.gnome.org/GNOME/fractal/issues/516
2019-08-17 19:51:03 +00:00
Christopher Davis
57945eecad fractal-gtk: Migrate to GtkSourceView4
GtkSourceView3 is no longer updated.
2019-08-10 23:35:12 -07:00
Daniel García Moreno
65ed458295 Release 4.2.0 2019-07-27 09:30:29 +02:00
Christopher Davis
197e063157 directory: Adapt room directory for mobile sizes
Makes it so that the room directory can scale down to mobile
sizes.
2019-07-19 13:15:15 -07:00
Daniel García Moreno
daf36388ad Fix typing notification margin
The margin of the typing_label was not exactly aligned with the text, we
have the padding left of the list (18/6) plus the size of the avatar
(40) plus double of the padding of the row (9 * 2).

With the handy column the list left padding changes from 18 to 6 so we
need to control that case and change the margin according to that.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/492
2019-06-26 08:31:38 +02:00
Isaac Curtis
250376a7bd Initial support for being kicked
Remove translatable from kicked dialog
2019-05-28 21:30:15 -06:00
Baptiste Gelez
1619aa3840 Update changelog: keyboard shrotcuts were added 2019-05-15 17:41:23 +01:00
Baptiste Gelez
7348934615 Add new keyboard shortcuts to the help dialog 2019-05-14 10:59:12 +00:00
Christopher Davis
408c7ce2da fractal-gtk: Improve list keyboard navigation
Previously on both the room list and the message list,
our GtkScrolledWindows would not scroll with our focus.
This meant users that relied on keyboard navigation were
stuck at the top of our room list and the bottom of our
message list.

Now we scroll both lists as focus moves, improving
navigation for keyboard users.
2019-05-14 06:59:47 +00:00
Alexandre Franke
1522550314 Prepare changelog for 4.2 2019-05-05 11:20:46 +02:00
Christopher Davis
a10c7c4ad6 ui: Unmark placeholders as translatable
As per https://gitlab.gnome.org/GNOME/fractal/issues/397,
removes translation for strings that are replaces and
translated within the code.

Fixes #397
2019-04-29 20:01:27 -04:00
Christopher Davis
f96d72654a fractal-gtk: Reduce margins when leaflet is folded
Our current margins are a little too big for a mobile screen.
So, we reduce them to 6px when we detect that the app is
folded with HdyLeaflet.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/480
2019-04-29 08:29:59 +00:00
Christopher Davis
7b1734af95 build: Build resources with meson instead of build.rs
Allows us to get rid of build.rs, which was only used to
compile resources. static_resource.rs is now created by
meson, and the meson path is used for include_bytes!.
2019-04-27 16:24:08 +00:00
Piotr Drąg
37f3a59de5 ui: Fix translatable attribute in login_flow
It takes “yes,” not “true”.
2019-04-21 15:13:33 +00:00
Christopher Davis
e1fbb54ca4 login_flow.ui: Add mnemonics for keyboard navigation
mnemonics are a tool used for faster keyboard navigation,
and help with accessibility.

This commit adds mnemonics for every entry and button that
either has a label or doesn't have another shortcut.
2019-04-15 10:30:58 -04:00
Christopher Davis
66e95aa151 fractal-gtk: Redesign Login Flow
This is a complete overhaul over the interface for login.

* widgetifies the login view (removes app/connect/login.rs)
* Instead of asking for the identity server, uses .well-known
* No longer assumes a homeserver

Closes #448
2019-04-15 10:30:58 -04:00
Christopher Davis
336f0b22ae ui: Separate login from main_window.ui
Branches the login flow off from the main window's UI file.
Like the account settings view we can add it to the stack
manually at run-time. This cuts down greatly on the
complexity of the main_window file.
2019-04-15 10:30:58 -04:00
Christopher Davis
d0887529fa media_viewer: Remove zoom controls
Until we get a proper image viewer widget, we've
decided that it's best to remove the zoom controls
instead of having broken ones.
2019-04-02 07:43:04 +00:00
Crom (Thibaut CHARLES)
d60ce58cf3
power_level badges for users in room settings
Used Avatar::circle badge parameter in MemberBox

rustfmt

Show power level next to the matrix user ID

Fix mxid & power level forcing window width

new design closer to @bertob's proposal

Gap around avatar's badge

Power level roles translation

css-themed avatar's colored dot

Reduced badge height
2019-03-18 20:46:12 +01:00
Xiang Fan
bdb4d5c7af account: Make stack non-homogeneous
The spinner should be at the center of the view, not the other child of
the stack.
2019-03-15 15:53:19 +08:00
Xiang Fan
5ea9b0c6a3 account: Fix foci
Some labels have focus and some buttons don't. This should fix it.
2019-03-15 15:52:31 +08:00
Daniel García Moreno
54a1144ea8 Merge branch 'merge-requests/387'
account_settings: Remove revealer boxes

https://gitlab.gnome.org/GNOME/fractal/merge_requests/387
2019-03-13 10:40:57 +01:00
Rasmus Rendal
48c8013be4 Add typing notifications
Add handler for incoming typing notifications in the sync loop
Add an appop handler for typing notifications to the frontend

Feature added for #305
2019-03-07 08:40:03 +00:00
Xiang Fan
b2135efac2 account_settings: Remove revealer boxes 2019-03-04 09:53:47 +00:00
Robert Griesel
b4b38868ad Save and restore window state
Size, position and window maximize state are saved in gsettings
when closing Fractal. They are then restored on startup.

Window position is not working on all windowing systems.

Fixes #123
2019-02-25 11:01:33 +00:00