Switch to sRGBA everywhere

This commit is contained in:
Joscha 2024-03-08 17:40:17 +01:00
parent 859fdb4bfe
commit 1e73c01845
6 changed files with 52 additions and 44 deletions

View file

@ -1,7 +1,6 @@
use cosmic_text::{Attrs, Metrics};
use palette::Srgb;
use palette::Srgba;
use showbits_common::{
color,
widgets::{FontStuff, HasFontStuff, Text},
Tree, WidgetExt,
};
@ -67,7 +66,7 @@ impl Drawer {
}
fn on_test(&mut self) -> anyhow::Result<()> {
let mut tree = Tree::<Context>::new(Srgb::new(1.0, 1.0, 1.0));
let mut tree = Tree::<Context>::new(Srgba::new(1.0, 1.0, 1.0, 1.0));
let root = Text::simple(
&mut self.ctx.font_stuff,