summaryrefslogtreecommitdiffstats
path: root/native/src/renderer/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 15:19:04 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 15:19:04 +0700
commitedea093350e1b576e2b7db50c525e7fa5c3bea9f (patch)
treebcc93c11a804d04e5842cef6c2088911fd4ef822 /native/src/renderer/text.rs
parent54a9a232f8110364972a8eef966b7b7477573f4f (diff)
downloadiced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.tar.gz
iced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.tar.bz2
iced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.zip
Move `Defaults` from `iced_graphics` to `iced_native`
Diffstat (limited to '')
-rw-r--r--native/src/renderer/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/renderer/text.rs b/native/src/renderer/text.rs
index 5c189d89..9234c587 100644
--- a/native/src/renderer/text.rs
+++ b/native/src/renderer/text.rs
@@ -12,8 +12,8 @@ pub trait Text: Renderer {
pub struct Section<'a, Font> {
pub content: &'a str,
pub bounds: Rectangle,
- pub size: Option<f32>,
- pub color: Option<Color>,
+ pub size: f32,
+ pub color: Color,
pub font: Font,
pub horizontal_alignment: alignment::Horizontal,
pub vertical_alignment: alignment::Vertical,