GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
506 stars 55 forks source link

[Request]: Square avatars #757

Closed UnderEu closed 5 months ago

UnderEu commented 5 months ago

Describe the request

I want the option to use square avatars instead of round ones. It's a matter of personal preference and, in some cases, there are images that the round frame crop details from them.

Example: Untitled

Implementation Details

GeopJr commented 5 months ago

I'm sorry but I'm going to have to decline.

Square avatars do not match the adwaita stylesheet (https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.Avatar.html) so even if I wanted to maintain yet another option (I don't), it could break at any moment.

in some cases, there are images that the round frame crop details from them.

You can still open images in the media viewer by clicking on them.

I want the option to use square avatars instead of round ones. It's a matter of personal preference

You can override the libadwaita stylesheet on your machine but beware that it can break at any point, will affect other apps and that you shouldn't report issues to any project that might have been caused by it:

$ echo ".ttl-flat-button.circular,.ttl-status-avatar-actor,.ttl-status-avatar-border,avatar{border-radius:0}" >> ~/.config/gtk-4.0/gtk.css

# If you use the flatpak:
$ flatpak override --filesystem=xdg-config/gtk-4.0:ro dev.geopjr.Tuba --user
UnderEu commented 5 months ago

You can override the libadwaita stylesheet on your machine but beware that it can break at any point, will affect other apps and that you shouldn't report issues to any project that might have been caused by it:

$ echo ".ttl-flat-button.circular,.ttl-status-avatar-actor,.ttl-status-avatar-border,avatar{border-radius:0}" >> ~/.config/gtk-4.0/gtk.css

# If you use the flatpak:
$ flatpak override --filesystem=xdg-config/gtk-4.0:ro dev.geopjr.Tuba --user

That's fine for me.