Allow underlines to have different color than the text

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-10-26 12:46:46 -07:00
co-authored by Nathan Sobo
parent 7d5425e142
commit 4069db4959
8 changed files with 63 additions and 42 deletions
+4 -4
View File
@@ -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,
},
)],
)
+1 -1
View File
@@ -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(),