Remove todo
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
co-authored by
Marshall Bowers
parent
b2f9c454b0
commit
38d0fdc09a
@@ -9379,18 +9379,16 @@ impl Render for Editor {
|
|||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||||
let settings = ThemeSettings::get_global(cx);
|
let settings = ThemeSettings::get_global(cx);
|
||||||
let text_style = match self.mode {
|
let text_style = match self.mode {
|
||||||
EditorMode::SingleLine => {
|
EditorMode::SingleLine => TextStyle {
|
||||||
TextStyle {
|
color: cx.theme().colors().text,
|
||||||
color: cx.theme().colors().text,
|
font_family: settings.ui_font.family.clone(),
|
||||||
font_family: settings.ui_font.family.clone(), // todo!()
|
font_features: settings.ui_font.features,
|
||||||
font_features: settings.ui_font.features,
|
font_size: rems(0.875).into(),
|
||||||
font_size: rems(0.875).into(),
|
font_weight: FontWeight::NORMAL,
|
||||||
font_weight: FontWeight::NORMAL,
|
font_style: FontStyle::Normal,
|
||||||
font_style: FontStyle::Normal,
|
line_height: relative(1.).into(),
|
||||||
line_height: relative(1.).into(),
|
underline: None,
|
||||||
underline: None,
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorMode::AutoHeight { max_lines } => todo!(),
|
EditorMode::AutoHeight { max_lines } => todo!(),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user