Switch to sRGBA everywhere
This commit is contained in:
parent
859fdb4bfe
commit
1e73c01845
6 changed files with 52 additions and 44 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue