From fe70db1f4ce078f7b41c163a1c0ead31fd04850a Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Tue, 8 Feb 2022 21:12:09 +0100 Subject: New color stuff - CMYK function - More default colors - Interpret RGB values as sRGB --- src/eval/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/eval') diff --git a/src/eval/mod.rs b/src/eval/mod.rs index ae680d95..5129a41f 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -39,7 +39,7 @@ use syntect::parsing::SyntaxSet; use unicode_segmentation::UnicodeSegmentation; use crate::diag::{At, Error, StrResult, Trace, Tracepoint, TypResult}; -use crate::geom::{Angle, Fractional, Length, Paint, Relative, RgbaColor}; +use crate::geom::{Angle, Color, Fractional, Length, Paint, Relative}; use crate::image::ImageStore; use crate::layout::RootNode; use crate::library::{self, DecoLine, TextNode}; @@ -278,8 +278,8 @@ impl RawNode { let foreground = THEME .settings .foreground - .map(RgbaColor::from) - .unwrap_or(RgbaColor::BLACK) + .map(Color::from) + .unwrap_or(Color::BLACK) .into(); match syntax { -- cgit v1.2.3