summaryrefslogtreecommitdiffstats
path: root/graphics/src/layer/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-31 06:29:21 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:19:48 +0100
commitbaf51a8fcffc78e4ca20f7dcbba18ca3655f2840 (patch)
treefd7ba1920ac0ff57b6ddefd692d8cad5d57274cd /graphics/src/layer/text.rs
parentb9a9576207ddfc7afd89da30b7cfc7ca0d7e335c (diff)
downloadiced-baf51a8fcffc78e4ca20f7dcbba18ca3655f2840.tar.gz
iced-baf51a8fcffc78e4ca20f7dcbba18ca3655f2840.tar.bz2
iced-baf51a8fcffc78e4ca20f7dcbba18ca3655f2840.zip
Draft `glyphon` implementation of text pipeline for `iced_wgpu`
Diffstat (limited to 'graphics/src/layer/text.rs')
-rw-r--r--graphics/src/layer/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/layer/text.rs b/graphics/src/layer/text.rs
index 74f7a676..38d62616 100644
--- a/graphics/src/layer/text.rs
+++ b/graphics/src/layer/text.rs
@@ -1,4 +1,4 @@
-use crate::{alignment, Font, Rectangle};
+use crate::{alignment, Color, Font, Rectangle};
/// A paragraph of text.
#[derive(Debug, Clone, Copy)]
@@ -10,7 +10,7 @@ pub struct Text<'a> {
pub bounds: Rectangle,
/// The color of the [`Text`], in __linear RGB_.
- pub color: [f32; 4],
+ pub color: Color,
/// The size of the [`Text`].
pub size: f32,