Start work on chat panel and non-uniform list
Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
4353bdb9d5
commit
6955579f19
9 changed files with 758 additions and 400 deletions
|
@ -2,7 +2,7 @@ use std::{ops::Range, sync::Arc};
|
|||
|
||||
use anyhow::bail;
|
||||
use futures::FutureExt;
|
||||
use gpui::{AnyElement, FontStyle, FontWeight, HighlightStyle, UnderlineStyle};
|
||||
use gpui::{AnyElement, FontStyle, FontWeight, HighlightStyle, UnderlineStyle, WindowContext};
|
||||
use language::{HighlightId, Language, LanguageRegistry};
|
||||
use util::RangeExt;
|
||||
|
||||
|
@ -56,12 +56,7 @@ pub struct Mention {
|
|||
}
|
||||
|
||||
impl RichText {
|
||||
pub fn element(
|
||||
&self,
|
||||
// syntax: Arc<SyntaxTheme>,
|
||||
// style: RichTextStyle,
|
||||
// cx: &mut ViewContext<V>,
|
||||
) -> AnyElement {
|
||||
pub fn element(&self, cx: &mut WindowContext) -> AnyElement {
|
||||
todo!();
|
||||
|
||||
// let mut region_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue