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
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.
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>
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.
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.
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
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
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
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.
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
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!.
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.
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
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.
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
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