Commit graph

216 commits

Author SHA1 Message Date
Christopher Davis
b124fcddc3 main_window: Use HdyStatusPage for no room selected view
Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/710
2021-02-05 11:57:13 +00:00
Christopher Davis
96f096057a login: Use HdyStatusPage and rounded buttons
Related to https://gitlab.gnome.org/GNOME/fractal/-/issues/710
2021-02-05 11:57:13 +00:00
Alejandro Domínguez
65cf442dfd Access direct_chat_dialog widget and children directly 2021-01-02 01:06:05 +01:00
Kévin Commaille
dc8f6abcf9 Switch Riot references to Element 2020-12-14 17:03:26 +01:00
Kévin Commaille
7977e0b2da Remove position and properties with default values 2020-12-10 20:39:16 +01:00
Kévin Commaille
cf60e0ff14 Remove GtkBox padding fill and expand child properties 2020-12-10 19:20:03 +01:00
Christopher Davis
f00d9c5251 account_settings: Remove manual viewport
ScrolledWindow adds a viewport for us.
2020-11-06 08:12:14 +00:00
Christopher Davis
68adb31aeb room_settings: Remove manual viewport
ScrolledWindow will add a viewport for us.
Since we don't need to set any extra properties,
this is fine.
2020-11-06 08:12:14 +00:00
Christopher Davis
b9bf237b8b direct_chat: Remove manual viewport
ScrolledWindow automatically adds a viewport.
2020-11-06 08:12:14 +00:00
Christopher Davis
b0b31b549d autocomplete: Remove viewport
We don't need a viewport here since we don't scroll.
2020-11-06 08:12:14 +00:00
Christopher Davis
c439ef09a0 media_viewer: Remove placeholders
These are not needed.
2020-11-06 08:12:13 +00:00
Christopher Davis
4839d9d1fe media_viewer: Remove GtkAlignment
GtkAlignment is deprecated and no longer used
in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
4f2362c820 server_chooser_menu: Remove child properties
Removes the use of redundant child properties.
2020-11-06 08:12:13 +00:00
Christopher Davis
ec3c52e824 new_room: Remove combo
This combo is never used.
2020-11-06 08:12:13 +00:00
Christopher Davis
fd6df06a9d room_settings: Minimize use of child properties
Child properties are gone in GTK4. Only use what
we absolutely need to.
2020-11-06 08:12:13 +00:00
Christopher Davis
1f5970fa33 room_menu: Use menu model
This menu is simple enough that we can use
a menu model instead of a manual popover menu.
Since MenuModels are private in GTK4, this is
the recommended way to create menus.
2020-11-06 08:12:13 +00:00
Christopher Davis
adbe2fa176 password_dialog: Minimize use of child properties
Child properties are going away in GTK4, so only use
what we need.
2020-11-06 08:12:13 +00:00
Christopher Davis
6710abe459 new_room: Remove child properties and placeholders
Placeholders are not needed by GTK, and child
properties are removed in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
0905239169 msg_src_window: Remove position child prop
This property isn't needed.
2020-11-06 08:12:13 +00:00
Christopher Davis
4d144ab8f7 ui: Remove members.ui
This is no longer used anywhere.
2020-11-06 08:12:13 +00:00
Christopher Davis
526daeeaa2 media_viewer: Remove redundant child properties
Limit our use of child properties to only what's
absolutely necessary, as child properties will
be going away in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
dc38c081ed markdown_popover: Remove redundant child properties
Child properties are going away in GTK4. We
should limit our use of them to what is absolutely
necessary.
2020-11-06 08:12:13 +00:00
Christopher Davis
86fa6700cd main_window: Remove manual GtkViewport use
GtkViewports are automatically added by GtkScrolledWindow
2020-11-06 08:12:13 +00:00
Christopher Davis
09622d6141 main_window: Remove placeholders
These aren't needed at all.
2020-11-06 08:12:13 +00:00
Christopher Davis
5655536960 main_window: Minimize use of child properties
Child properties are going away in GTK4. We
can minimize which child properties we use to
what's absolutely necessary in GTK3.
2020-11-06 08:12:13 +00:00
Christopher Davis
eb39190b39 main_menu: Remove child properties
Remove redundant child properties from the main menu.
Child properties are going away in GTK4.

For now we can't use MenuModel here, as we have a custom
widget. Combining custom widgets and menu models will be
possible in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
50baee9357 leave_room: Remove child properties
Child properties are gone in GTK4.
2020-11-06 08:12:13 +00:00
Christopher Davis
196ae2046c kicked_room: Remove child properties
Child properties are gone in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
9a81e50a49 join_room: Clean up child props and placeholders
Placeholders aren't needed, and child properties
are gone in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
80d599c8fe invite_user: cleanup
Minimizes use of child properties and removes
redundant viewport.
2020-11-06 08:12:13 +00:00
Christopher Davis
4c695dde77 inivte: Remove child properties
These child properties aren't needed,
and will be gone in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
7c16247d4b ui: Remove filechooser.ui
This is no longer used since we've moved to using
FileChooserNative
2020-11-06 08:12:13 +00:00
Christopher Davis
fd595d1ca7 direct_chat: Minimize use of child properties
Remove all redundant child properties, as child
properties are gone in GTK4
2020-11-06 08:12:13 +00:00
Christopher Davis
9a09640e72 ui: Remove border_width
border_width is gone in GTK4 and can be replaced
with the margin property.
2020-11-06 08:12:13 +00:00
Christopher Davis
5dbb1814a0 audio_player: Remove use of child props
Child properties are gone in GTK4. In this case,
all child properties used were redundant
2020-11-06 08:12:13 +00:00
Christopher Davis
784b45c537 add_room_menu: Use menu model
Instead of manually building the menu,
we can use a menu model. In GTK4 ModelButton
is private, so menu models are the way
to create proper menus for popovers.
2020-11-06 08:12:13 +00:00
Christopher Davis
eb9dfdb5c5 account_settings: Minimize child props and remove placeholders
Child props are gone in GTK4, and placeholders are not
needed.

Removes all redundant child properties.
2020-11-06 08:12:13 +00:00
Christopher Davis
18176d8617 server_chooser: Remove GtkAlignment
GtkAlignment isn't needed (and is gone in GTK4),
as all of it's functions have been moved to
individual widgets.
2020-11-06 08:12:13 +00:00
Christopher Davis
5d29dffb43 ui: Clean up deprecated margin props
margin-{left,right} have been deprecated in favor of
margin-{start,end}. This commit handles that deprecation.
2020-11-06 08:12:13 +00:00
Christopher Davis
1b88797b30 room_settings: Remove GtkFrame for notifications
Allows for more CSS cleanup and re-use of libhandy
styles.
2020-10-18 16:13:25 -07:00
Christopher Davis
f3583b7867 room_settings: Use libhandy style class instead of GtkFrame
Allows us to cut out a bit of CSS
2020-10-18 16:13:25 -07:00
Christopher Davis
f615362d6e media_viewer: Make OSD buttons circular
Newer mockups for image viewers have circular
navigation buttons.
2020-10-18 16:13:25 -07:00
Christopher Davis
463b1e9922 room_settings: Round corners, adjust spacing
A newer pattern for GNOME is rounded list corners.
In GTK4 GtkFrame automatically has rounded corners.
For now, we can adopt this style pattern by rounding
our frame and it's contents manually.

This commit also adjusts the spacing between the search
and room member list, for a less cramped feeling.
2020-10-18 16:13:25 -07:00
Christopher Davis
1a552c5fbf fractal-gtk: Refactor window to use HdyDeck
Helps simplify how we handle pages, as well as
adding support for swiping between the main view
and different subviews.
2020-09-21 15:51:25 -07:00
Christopher Davis
438e846ba2 fractal-gtk: Port to libhandy-1
Ports our UI to the now-stable libhandy-1. libhandy-1 comes
with a few improvements, but also some API breakages
that needed to be fixed up.
2020-09-21 14:04:00 -07:00
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
Alexandre Franke
5921e2b1ee media: add tooltip to fullscreen button
Fixes #272
2020-07-28 20:17:12 +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
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
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