Commit graph

504 commits

Author SHA1 Message Date
Eisha CHEN-YEN-SU
c8b888c77c Message: Add receipt to messages
This adds a new field that contains the receipts of the message.

See https://gitlab.gnome.org/World/fractal/issues/115
2018-07-09 19:16:02 +02:00
Piotr Drąg
b46c309985 Update Polish translation 2018-07-08 14:38:43 +00:00
Eisha CHEN-YEN-SU
41fdd9bd7c RoomBox: Turn the widget into a GtkListRow
This turns the widget into a GtkListRow in order to make it
unselectable.

See https://gitlab.gnome.org/World/fractal/issues/221
2018-07-07 18:19:44 +02:00
Eisha CHEN-YEN-SU
361db8b76c Directory: Display the new spinner when loading
See https://gitlab.gnome.org/World/fractal/issues/221
2018-07-07 18:19:44 +02:00
Eisha CHEN-YEN-SU
ab826ee0b0 UI: Add a GtkStack with a spinner in the directory
This adds a GtkStack with a spinner and the room list into it to have a
big spinner when loading the directory.

See https://gitlab.gnome.org/World/fractal/issues/221
2018-07-07 18:19:44 +02:00
Eisha CHEN-YEN-SU
5d0f25a691 UI: Change the name of room directory menu button
This changes the name of the room directory menu button as it was
outdated.

See https://gitlab.gnome.org/World/fractal/issues/221
2018-07-07 18:19:44 +02:00
Daniel García Moreno
54d383d719 Merge branch refactor-avatar
See merge request World/fractal!155

I've also added one commit to reload the username in the message history
2018-07-06 11:06:26 +02:00
Daniel García Moreno
0516782a87 Reload the username in the message history 2018-07-06 11:05:50 +02:00
Eisha CHEN-YEN-SU
5fb05c6d13 MediaViewer: Add keyboard navigation support
This allows navigating the media using left/right keys.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-06 09:43:30 +02:00
Julian Sparber
8993f5fdfd avatar: refactor avatar loading and caching
* use the same method everywhere to display an avatar
* move code to generate letter avatars to a separate crate
* use the generated avatar as a fallback till the real avatar is
avaibile
* remove gtk dependecies from fractal-matrix-api

Note: The avatar in room details dialog is borken but the dialog will be
replaced soon. Also updating the username in the room history doesn't
work, the room history needs a refactor to resolve some issues.
2018-07-05 18:54:59 +02:00
Eisha CHEN-YEN-SU
5f2985df3e MediaViewer: Hide arrows when they are useless
This hides the arrow buttons instead of making them insensitive, when
there are no images in the direction.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-05 17:09:51 +02:00
Eisha CHEN-YEN-SU
7318e7d94c MediaViewer: Refactor the loading state code
This is a refactoring of the code that makes the media viewer UI enters
in the loading state.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-05 17:07:53 +02:00
Eisha CHEN-YEN-SU
e1ce741305 MediaViewer: Add a notification when loading
This adds a notification showing when the previous media are being
loaded.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-05 15:05:27 +02:00
Eisha CHEN-YEN-SU
09f9630db7 MediaViewer: Implement asynchronous media loading
This makes the media being asynchronously loaded so that the UI isn't
frozen during the loading.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-05 15:05:27 +02:00
Eisha CHEN-YEN-SU
75d1267780 MediaViewer: Add unlimited access to previous media
This adds the possibility to go back (with the previous button)
beyond the loaded messages.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-05 10:33:04 +02:00
Eisha CHEN-YEN-SU
9a3a156876 media_viewer.rs: Add a FIXME for an improvement
This adds a FIXME that points to possible improvement that would require
further investigation.
2018-07-04 21:46:36 +02:00
Eisha CHEN-YEN-SU
5c0240313b MediaViewer: Change full screen button icon
This changes the full screen's button icon when in full screen mode to
show the icon "view-restore-symbolic" as it is more appropriate.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-02 19:39:24 +02:00
Daniel García Moreno
f74fbb5729 Escape management in only one method
I've moved the leave full screen on escape from the media_viewer to the
existing escape method in state.rs to have all the behaviour in only one
place.

Doing this I've also added the functionality to go back to the chat when
we're in the MediaViewer and to do this I've to modify a little the
autocomplete, to avoid the close when we press escape on the
autocomplete popover.

I've also changed the key management on key press instead of key release
because the keypress is grabbed by child windows or popovers and the
release isn't.

Close #277
2018-07-02 13:34:23 +02:00
Daniel García Moreno
6999de5777 Merge branch 'media-viewer-headerbar-fullscreen' 2018-07-02 09:10:38 +02:00
Daniel García Moreno
03b3366d01 MediaViewer: replace if-let chain with and_then
I've replaced the 4 deep if-let using the Option and_then and map
methods.

The last map method transform the ptr to an Option<bool> type, to be
able to use the ? operator inside this closure.
2018-07-02 09:06:44 +02:00
Daniel García Moreno
0365818900 MediaViewer: Fullscreen bar with full width 2018-07-02 08:58:54 +02:00
Piotr Drąg
a305429a17 Update Polish translation 2018-07-01 16:59:44 +00:00
Eisha CHEN-YEN-SU
936e552236 MediaViewer: Modify a button to leave full screen
This modifies the full screen button so that it enables the user to
leave the full screen mode when already in full screen.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Eisha CHEN-YEN-SU
ad61ec17c9 MediaViewer: Hide some buttons in FS header bar
This hides the back and close buttons in the full screen header bar
in order to avoid unexpected behaviors.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Eisha CHEN-YEN-SU
64f6c06fcb MediaViewer: Implement the headerbar timer
This implements the timer that will hide the headerbar after some
time of inactivity.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Eisha CHEN-YEN-SU
b914269109 MediaViewer: Implement the revealing of headerbar
See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Eisha CHEN-YEN-SU
9d3769fa7a MediaViewer: Move headerbar in full screen mode
See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Eisha CHEN-YEN-SU
3a00618fcc UI: Add a headerbar revealer to the overlay
See https://gitlab.gnome.org/World/fractal/issues/265
2018-07-01 18:05:51 +02:00
Jordi Mas
45658532f9 Add Catalan language 2018-06-30 08:19:42 +02:00
Daniel Mustieles
d1dba649c0 Update Spanish translation 2018-06-29 09:52:08 +00:00
Daniel Garcia Moreno
86edb9f1c5 Merge branch 'wip/piotrdrag/grammar-fix' into 'master'
message: Grammar fix in a translatable string

See merge request World/fractal!148
2018-06-27 19:51:49 +00:00
Piotr Drąg
2055d427ad message: Grammar fix in a translatable string 2018-06-27 18:21:29 +02:00
Piotr Drąg
714c6d3099 Update POTFILES.in 2018-06-27 18:19:04 +02:00
Jordan Petridis
98f6a60a3b AudioPlayer: Use Weak ref counting in order to not keep the object alive.
We were passing a strong ref to the gstreamer callbacks which was causing
them to keep the `AudioPlayerWidget` struct alive even after the gtk widget
had been destroyed.
2018-06-26 15:24:53 +00:00
Jordan Petridis
d1cfc8b633 Update gst crates and add pulseaudio to the flatpak manifest. 2018-06-26 15:24:53 +00:00
Jordan Petridis
c4f69d6f6c backend: Add command to retrieve a media url. 2018-06-26 15:24:52 +00:00
Jordan Petridis
5a9ffa1b25 Message: Move the download btn to the right of the audio player. 2018-06-26 15:24:52 +00:00
Jordan Petridis
f291efed67 AudioPlayer: Wire it to the Message widget. 2018-06-26 15:24:51 +00:00
Jordan Petridis
8df8182b2a AudioPlayer: Add an api to initialize a stream. 2018-06-26 15:24:51 +00:00
Jordan Petridis
733e279461 AudioPlayer: Rename the widget to AudioPlayerWidget. 2018-06-26 15:24:50 +00:00
Jordan Petridis
efb685ac6a AudioPlayer: Wire the labels and slider to the gst_player. 2018-06-26 15:24:50 +00:00
Jordan Petridis
aba59f6197 AudioPlayer: Initial yak shaving, not wired up yet. 2018-06-26 15:24:50 +00:00
Jordan Petridis
fe2da0bfb3 AudioPlayer: add the glade .ui file containing the widget. 2018-06-26 15:24:49 +00:00
Daniel García Moreno
d959acfb01 css: Tmp message background based on theme_bg_color
Fix #275
2018-06-26 15:20:58 +02:00
Jordan Petridis
b581ae4d01
fractal-gtk: Remove pining of some deps.
This was due to a bug. It has since been fixed and
it's no longer needed.
2018-06-22 16:50:40 +03:00
Jordan Petridis
3c86e30c59
Move some extern crate declarations to the main.rs file. 2018-06-22 16:50:35 +03:00
Daniel García Moreno
7250f95206 New release 3.29.1
New features:

 * Media viewer for images
2018-06-22 09:15:40 +02:00
Daniel García Moreno
5e562cd324 MediaViewer: refactor code to avoid repetition 2018-06-21 00:18:11 +02:00
Eisha CHEN-YEN-SU
9feebe734c MediaViewer: Resize image in full screen mode
See https://gitlab.gnome.org/World/fractal/issues/265
2018-06-20 15:21:53 +02:00
Eisha CHEN-YEN-SU
fbabd1e839 MediaViewer: Adjust zoom buttons sensitivity
This allows to adjust the zoom buttons sensitivity when the user is
not supposed to be able to zoom in or out.

See https://gitlab.gnome.org/World/fractal/issues/265
2018-06-19 22:27:02 +02:00