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:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user