Add Shape enum to avatar component, refactor UITextSize to styles/typography.rs

This commit is contained in:
Nate Butler 2023-11-21 00:59:29 -05:00
parent 205607a9cd
commit 56d45e72cd
4 changed files with 36 additions and 140 deletions

View file

@ -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,