Kévin Commaille
8cfa4bfde5
components: Port to the glib::Properties macro
2 years ago
Kévin Commaille
51797294dc
avatar-data: Allow to construct without AvatarImage
...
We might need to show an avatar without having a Session.
2 years ago
Kévin Commaille
9d0409124c
misc: Do not change line height
...
It makes the text blurry on non-HiDPI screens.
This change is temporary for the Fractal 5 release.
2 years ago
Kévin Commaille
1c4d275394
components: Move LoadingState into utils
2 years ago
Kévin Commaille
f25bf6ef77
utils: Disconnect signals on drop for BoundObject(WeakRef)
...
This is always something we need to do anyway.
2 years ago
Kévin Commaille
992fbaeda6
chore: Fix clippy warnings
2 years ago
Kévin Commaille
d70e8d3f4e
components: Specialize OverlappingBox to only handle avatars
...
Rename it to OverlappingAvatars.
It's the only use case for it in the foreseeable future.
It deduplicates code and facilitates a11y.
2 years ago
Kévin Commaille
2c94eee666
a11y: Set Avatar role as presentational when it is next to a label
2 years ago
Kévin Commaille
9b822fb47c
components: Set default accessible role of Avatar as an image
...
And hide children from the a11y tree.
2 years ago
Kévin Commaille
0391911e3e
video-player: Only play when the player is mapped
2 years ago
Kévin Commaille
a1f7524392
drag-overlay: Set revealer has hidden by default
...
Because the child is not revealed by default
2 years ago
Maximiliano Sandoval R
0c3879622e
room-title: Add missing CSS from libadwaita
...
Partially fixes #1219 , it is not reproducible when setting the text
scaling factor to 1.25 (Larger Text from Settings),
it only starts to be visible at 1.5.
2 years ago
Kévin Commaille
4e498903df
video-player: Flush message bus on dispose
...
Otherwise we might leak the GstPlay
2 years ago
Kévin Commaille
6b1502f513
drag-overlay: Hide revealer when not in use
...
Allows to select other widgets in the history with the GTK Inspector.
2 years ago
Kévin Commaille
349a2783f1
drag-overlay: Don't subclass AdwBin
...
We override all its APIs
2 years ago
Kévin Commaille
7f8dc352b4
data: Bundle all the icons we use
...
Relying on the ones available on the system might not work on all
systems
2 years ago
Kévin Commaille
58a5057b98
misc: Ensure most icons have a tooltip/accessibility label
2 years ago
Kévin Commaille
0c652f24d9
editable-avatar: Make cutout style match less generic
2 years ago
Kévin Commaille
8339ebd8c6
chore: Allow most of text buttons to shrink
...
This should avoid adaptiveness issues in case translations are too long
2 years ago
Kévin Commaille
2e62541bef
room-details: Display the members list loading state
2 years ago
Kévin Commaille
bd156606e3
loading-row: Remove set_loading
...
It can lead to an inconsistent state where loading is false but the
spinner is showing.
Let's stick with a single API to show the spinner, when there is no
error.
2 years ago
Kévin Commaille
85c874ed04
components: Rename LoadingListBoxRow to LoadingRow
2 years ago
Kévin Commaille
e4225577fd
chore: Update matrix-sdk
2 years ago
Kévin Commaille
ba15c5b12a
chore: Update gtk crate and associated dependencies
3 years ago
Kévin Commaille
97de17ce62
misc: Use tracing for logging
3 years ago
Kévin Commaille
ba09929fe6
chore: Upgrade matrix-sdk and other cargo dependencies
3 years ago
Kévin Commaille
5252af0722
chore: Use binding builder fns instead of glib::BindingFlags
3 years ago
Kévin Commaille
6db42e80dd
chore: Use and_(downcast/upcast)(_ref) where possible
3 years ago
Kévin Commaille
44be7288a5
auth-dialog: Improve type docs
3 years ago
Kévin Commaille
3b44870d9e
auth-dialog: Derive Error for AuthError
3 years ago
Kévin Commaille
62ef569458
auth-dialog: Cleanup imports
3 years ago
Kévin Commaille
ec317a0d77
auth-dialog: Implement dummy stage
...
It is not supposed to require user interaction so it's a waste to use
the fallback URL.
3 years ago
Kévin Commaille
e8ed5a99a5
auth-dialog: Set SSO as a preferred stage
...
Avoids unknown auth types to take precedence
3 years ago
Kévin Commaille
5b8cc97ea9
components: Fix audio player template path
3 years ago
Kévin Commaille
72e547c525
room: Make MemberRole an enum instead of bitflags
...
A user can only have one role at a time so it doesn't make sense to
declare it as a bitflag.
Fixes a clippy lint because the value 0 for a bitflag is the lack of any
flag.
3 years ago
Kévin Commaille
f7069f9883
chore: Fix typos in comments
3 years ago
Kévin Commaille
3f8a7e8bd0
label-with-widgets: Only invalidate children when necessary
3 years ago
Kévin Commaille
7c73e0e0f4
label-with-widgets: Fix ParamSpec types
3 years ago
Kévin Commaille
d13b03a85e
misc: Put UI files next to the corresponding Rust files
3 years ago
Kévin Commaille
b15c5f0c8b
session: Reorganize submodules between model and view
3 years ago
Kévin Commaille
15b9932383
session: Split avatar image data from AvatarData
...
Allows to use the same avatar image for several rooms and users.
3 years ago
Kévin Commaille
840a53b0fb
session: Rename Avatar to AvatarData
...
Avoid confusion with the Avatar in components and avoid to have
to rename it to AvatarItem.
3 years ago
Kévin Commaille
6466d76ad1
media: Use gio::File::new_tmp() to store temp files
3 years ago
Maximiliano Sandoval R
59c6fc2441
loading_listbox_row: Stop spinners when idle
3 years ago
Maximiliano Sandoval R
ef368e740a
media_content_viewer: Stop spinners when idle
3 years ago
Maximiliano Sandoval R
ada8a79ca3
action_button: Stop spinners when idle
3 years ago
Maximiliano Sandoval R
36f50ab260
spinner_button: Stop spinners when idle
3 years ago
Maximiliano Sandoval R
4e3675e286
Add a spinner component
3 years ago
Kévin Commaille
1577c8a701
utils: Simplify use of BoundObjectWeakRef
...
Avoid to have to wrap it in a `RefCell<Option<T>>`.
3 years ago
Kévin Commaille
a0b7e73436
avatar: Request size according to scale factor
...
Improves rendering on high-DPI screens
3 years ago