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

@@ -64,7 +64,7 @@ impl<'a> EditProfileView<'a> {
pfp_rect,
ProfilePic::new(self.img_cache, pfp_url)
.size(size)
.border(2.0),
.border(ProfilePic::border_stroke(ui)),
);
in_frame(ui, |ui| {