diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-18 15:10:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-18 15:10:11 +0100 |
| commit | 1a6fb48bc5e95d0a9ef243ab62517557189c0eea (patch) | |
| tree | 06f704fe638d5ae25f4976874500c5da75316348 /src/library/style.rs | |
| parent | 1eb25f86dd6763c4f2d7e60b6d09af60ada50af6 (diff) | |
Page style modification functions 📜
- `page.size`
- `page.margins`
Diffstat (limited to 'src/library/style.rs')
| -rw-r--r-- | src/library/style.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/style.rs b/src/library/style.rs index 0615c0e7..a63166cf 100644 --- a/src/library/style.rs +++ b/src/library/style.rs @@ -18,16 +18,16 @@ macro_rules! stylefunc { } layout(this, ctx) { - let mut style = ctx.style.clone(); + let mut style = ctx.text_style.clone(); style.toggle_class(FontClass::$ident); Ok(match &this.body { Some(body) => commands![ - SetStyle(style), + SetTextStyle(style), LayoutTree(body), - SetStyle(ctx.style.clone()), + SetTextStyle(ctx.text_style.clone()), ], - None => commands![SetStyle(style)] + None => commands![SetTextStyle(style)] }) } } |
