Skip to content

Commit 4ccb57c

Browse files
committed
fix: Assume linear Srgb as input
1 parent 9e81db9 commit 4ccb57c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use validator::Validate;
1010

1111
use crate::db::models as db_models;
1212

13-
pub type Color = Rgb<palette::encoding::srgb::Srgb, u8>;
14-
pub type Color16 = Rgb<palette::encoding::srgb::Srgb, u16>;
13+
pub type Color = palette::rgb::LinSrgb<u8>;
14+
pub type Color16 = palette::rgb::LinSrgb<u16>;
1515

1616
pub trait ServerConfig {
1717
fn port(&self) -> u16;

0 commit comments

Comments
 (0)