Allow underlines to have different color than the text
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
7d5425e142
commit
4069db4959
8 changed files with 63 additions and 42 deletions
|
@ -62,7 +62,7 @@ impl gpui::Element for TextElement {
|
|||
.select_font(family, &Default::default())
|
||||
.unwrap(),
|
||||
color: Color::default(),
|
||||
underline: false,
|
||||
underline: None,
|
||||
};
|
||||
let bold = RunStyle {
|
||||
font_id: cx
|
||||
|
@ -76,7 +76,7 @@ impl gpui::Element for TextElement {
|
|||
)
|
||||
.unwrap(),
|
||||
color: Color::default(),
|
||||
underline: false,
|
||||
underline: None,
|
||||
};
|
||||
|
||||
let text = "Hello world!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue