Add basic call/user UI in top-right corner.

Allow ui::Avatar to take custom data instead of always relying on URI resolution
This commit is contained in:
Piotr Osiewicz
2023-11-23 15:00:13 +01:00
parent 0b67983ddf
commit c191943849
6 changed files with 113 additions and 36 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ impl Render for AvatarStory {
.child(Story::title_for::<Avatar>())
.child(Story::label("Default"))
.child(Avatar::new(
"https://avatars.githubusercontent.com/u/1714999?v=4",
"https://avatars.githubusercontent.com/u/1714999?v=4".into(),
))
.child(Avatar::new(
"https://avatars.githubusercontent.com/u/326587?v=4",
"https://avatars.githubusercontent.com/u/326587?v=4".into(),
))
}
}