Add Shape enum to avatar component, refactor UITextSize to styles/typography.rs
This commit is contained in:
parent
205607a9cd
commit
56d45e72cd
4 changed files with 36 additions and 140 deletions
|
@ -1,6 +1,13 @@
|
|||
use crate::prelude::*;
|
||||
use gpui::{img, Img, RenderOnce};
|
||||
|
||||
#[derive(Debug, Default, PartialEq, Clone)]
|
||||
pub enum Shape {
|
||||
#[default]
|
||||
Circle,
|
||||
RoundedRectangle,
|
||||
}
|
||||
|
||||
#[derive(RenderOnce)]
|
||||
pub struct Avatar {
|
||||
src: SharedString,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue