Style avatar image with border and rounded corners

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-09-14 16:59:38 -06:00
co-authored by Max Brunsfeld
parent 426d52d8c1
commit 0f415a594f
4 changed files with 25 additions and 20 deletions
+3 -2
View File
@@ -4,7 +4,7 @@ mod theme_registry;
use anyhow::Result;
use gpui::{
color::Color,
elements::{ContainerStyle, LabelStyle},
elements::{ContainerStyle, ImageStyle, LabelStyle},
fonts::{HighlightStyle, TextStyle},
Border,
};
@@ -47,8 +47,9 @@ pub struct Titlebar {
#[serde(flatten)]
pub container: ContainerStyle,
pub title: TextStyle,
pub icon_width: f32,
pub avatar_width: f32,
pub icon_signed_out: Color,
pub avatar: ImageStyle,
}
#[derive(Clone, Deserialize)]