pfp: 4.0 stroke, add border_stroke method

This reduces code duplication, and makes the border a bit cleaner
so that it blends into the panel color

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-02-03 20:24:51 -08:00
parent b35c7fc0ee
commit 9dd33d5c5b
4 changed files with 24 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ impl<'a, 'cache> ProfilePreview<'a, 'cache> {
pfp_rect,
ProfilePic::new(self.cache, get_profile_url(Some(self.profile)))
.size(size)
.border(2.0),
.border(ProfilePic::border_stroke(ui)),
);
ui.add(display_name_widget(
get_display_name(Some(self.profile)),