Add Text::styled() and use it in command palette
Prevents jumping while typing
This commit is contained in:
parent
06f3c60be8
commit
c5878cbd5f
3 changed files with 41 additions and 16 deletions
|
@ -368,6 +368,7 @@ impl Display for FontStyle {
|
|||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct TextRun {
|
||||
// number of utf8 bytes
|
||||
pub len: usize,
|
||||
pub font: Font,
|
||||
pub color: Hsla,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue