Introduce new iced_highlighter subcrate
This commit is contained in:
parent
c0a141ab02
commit
f806d001e6
9 changed files with 302 additions and 260 deletions
|
|
@ -52,8 +52,17 @@ impl Highlighter for PlainText {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Format<Font> {
|
||||
pub color: Option<Color>,
|
||||
pub font: Option<Font>,
|
||||
}
|
||||
|
||||
impl<Font> Default for Format<Font> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
color: None,
|
||||
font: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue