mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-09 21:26:14 +03:00
Use ghost_element_background
for avatar background color
Also add a couple todo!()s on top of the comments
This commit is contained in:
parent
4e9fb26102
commit
1c13c3a243
@ -129,6 +129,7 @@ pub struct ThemeColors {
|
|||||||
/// The border color of the scrollbar track.
|
/// The border color of the scrollbar track.
|
||||||
pub scrollbar_track_border: Hsla,
|
pub scrollbar_track_border: Hsla,
|
||||||
// /// The opacity of the scrollbar status marks, like diagnostic states and git status.
|
// /// The opacity of the scrollbar status marks, like diagnostic states and git status.
|
||||||
|
// todo!()
|
||||||
// pub scrollbar_status_opacity: Hsla,
|
// pub scrollbar_status_opacity: Hsla,
|
||||||
|
|
||||||
// ===
|
// ===
|
||||||
|
@ -73,6 +73,7 @@ impl ActiveTheme for AppContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo!()
|
||||||
// impl<'a> ActiveTheme for WindowContext<'a> {
|
// impl<'a> ActiveTheme for WindowContext<'a> {
|
||||||
// fn theme(&self) -> &Arc<Theme> {
|
// fn theme(&self) -> &Arc<Theme> {
|
||||||
// &ThemeSettings::get_global(self.app()).active_theme
|
// &ThemeSettings::get_global(self.app()).active_theme
|
||||||
|
@ -37,8 +37,7 @@ impl RenderOnce for Avatar {
|
|||||||
.child(
|
.child(
|
||||||
self.image
|
self.image
|
||||||
.size(size)
|
.size(size)
|
||||||
// todo!(Pull the avatar fallback background from the theme.)
|
.bg(cx.theme().colors().ghost_element_background),
|
||||||
.bg(gpui::red()),
|
|
||||||
)
|
)
|
||||||
.children(self.is_available.map(|is_free| {
|
.children(self.is_available.map(|is_free| {
|
||||||
// HACK: non-integer sizes result in oval indicators.
|
// HACK: non-integer sizes result in oval indicators.
|
||||||
|
Loading…
Reference in New Issue
Block a user