Allow underlines to have different color than the text
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
7d5425e142
commit
4069db4959
@@ -394,7 +394,7 @@ impl EditorElement {
|
||||
RunStyle {
|
||||
font_id: style.text.font_id,
|
||||
color: Color::black(),
|
||||
underline: false,
|
||||
underline: None,
|
||||
},
|
||||
)],
|
||||
)
|
||||
@@ -435,7 +435,7 @@ impl EditorElement {
|
||||
RunStyle {
|
||||
font_id: style.text.font_id,
|
||||
color,
|
||||
underline: false,
|
||||
underline: None,
|
||||
},
|
||||
)],
|
||||
)));
|
||||
@@ -476,7 +476,7 @@ impl EditorElement {
|
||||
RunStyle {
|
||||
font_id: placeholder_style.font_id,
|
||||
color: placeholder_style.color,
|
||||
underline: false,
|
||||
underline: None,
|
||||
},
|
||||
)],
|
||||
)
|
||||
@@ -859,7 +859,7 @@ impl LayoutState {
|
||||
RunStyle {
|
||||
font_id: self.style.text.font_id,
|
||||
color: Color::black(),
|
||||
underline: false,
|
||||
underline: None,
|
||||
},
|
||||
)],
|
||||
)
|
||||
|
||||
@@ -2763,7 +2763,7 @@ impl EditorSettings {
|
||||
font_size: 14.,
|
||||
color: Color::from_u32(0xff0000ff),
|
||||
font_properties,
|
||||
underline: false,
|
||||
underline: None,
|
||||
},
|
||||
placeholder_text: None,
|
||||
background: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user