diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-06 11:15:48 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-06 11:15:48 +0100 |
| commit | 02dc29d18a7b67edf0eaa5d125be22eec6cfebb7 (patch) | |
| tree | 2079ec1be481265655c798adc94d5e9e0166cfc2 /src/style.rs | |
| parent | 751812f45141a7b2022d0dba138457f3c21950b0 (diff) | |
Highlight bold / italic / monospace 🎨
Diffstat (limited to 'src/style.rs')
| -rw-r--r-- | src/style.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs index 075baa5a..57d6b6f3 100644 --- a/src/style.rs +++ b/src/style.rs @@ -24,6 +24,8 @@ pub struct TextStyle { /// Whether the bolder toggle is active or inactive. This determines /// whether the next `*` adds or removes font weight. pub bolder: bool, + /// Whether the monospace toggle is active or inactive. + pub monospace: bool, /// The base font size. pub base_font_size: Size, /// The font scale to apply on the base font size. @@ -77,6 +79,7 @@ impl Default for TextStyle { weight: FontWeight(400), }, bolder: false, + monospace: false, base_font_size: Size::pt(11.0), font_scale: 1.0, word_spacing_scale: 0.25, |
