summaryrefslogtreecommitdiff
path: root/src/library/elements.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 22:33:44 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 22:33:44 +0200
commitfd0b89a1d8e4f811fcf3517d321a327a0cf72edf (patch)
tree75d247866f5db1a0ad32909da6e0fdaafa479592 /src/library/elements.rs
parent7e2c217cbc3805c4cae613baf4149cc82e10d503 (diff)
Rename Fill to Paint
Diffstat (limited to 'src/library/elements.rs')
-rw-r--r--src/library/elements.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/library/elements.rs b/src/library/elements.rs
index 5271788f..c57504fb 100644
--- a/src/library/elements.rs
+++ b/src/library/elements.rs
@@ -3,9 +3,8 @@ use std::f64::consts::SQRT_2;
use decorum::N64;
use super::*;
-use crate::color::Color;
use crate::layout::{
- BackgroundNode, BackgroundShape, Fill, FixedNode, ImageNode, PadNode,
+ BackgroundNode, BackgroundShape, FixedNode, ImageNode, PadNode, Paint,
};
/// `image`: An image.
@@ -64,10 +63,10 @@ fn rect_impl(
let fixed = FixedNode { width, height, child: stack.into() };
- if let Some(color) = fill {
+ if let Some(fill) = fill {
ctx.push_into_par(BackgroundNode {
shape: BackgroundShape::Rect,
- fill: Fill::Color(color),
+ fill: Paint::Color(fill),
child: fixed.into(),
});
} else {
@@ -120,10 +119,10 @@ fn ellipse_impl(
.into(),
};
- if let Some(color) = fill {
+ if let Some(fill) = fill {
ctx.push_into_par(BackgroundNode {
shape: BackgroundShape::Ellipse,
- fill: Fill::Color(color),
+ fill: Paint::Color(fill),
child: fixed.into(),
});
} else {