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