summaryrefslogtreecommitdiff
path: root/src/style/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-18 12:50:28 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-18 12:50:28 +0100
commit5a59bb48216352d04f78c9a9392ca7cef280d7b2 (patch)
tree463ec7ef40078df17ea79e018caa3e8943bffc94 /src/style/mod.rs
parentb2e6a297893348a871fba8997017a9fc98d5674b (diff)
Page fill
Diffstat (limited to 'src/style/mod.rs')
-rw-r--r--src/style/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style/mod.rs b/src/style/mod.rs
index 9cf2de07..4588163b 100644
--- a/src/style/mod.rs
+++ b/src/style/mod.rs
@@ -71,6 +71,8 @@ pub struct PageStyle {
/// The amount of white space on each side of the page. If a side is set to
/// `None`, the default for the paper class is used.
pub margins: Sides<Option<Linear>>,
+ /// The background fill of the page.
+ pub fill: Option<Paint>,
}
impl PageStyle {
@@ -93,6 +95,7 @@ impl Default for PageStyle {
class: paper.class(),
size: paper.size(),
margins: Sides::splat(None),
+ fill: None,
}
}
}