Use default font color and remove Color

This commit is contained in:
grovesNL 2022-10-28 01:24:45 -02:30 committed by Josh Groves
parent 7eb4d41c25
commit 4c1a83548e
3 changed files with 11 additions and 19 deletions

View file

@ -1,4 +1,4 @@
use cosmic_text::{Attrs, FontSystem, SwashCache, TextBuffer, TextMetrics};
use cosmic_text::{Attrs, Color, FontSystem, SwashCache, TextBuffer, TextMetrics};
use glyphon::{Resolution, TextAtlas, TextRenderer};
use wgpu::{
Backends, CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
@ -101,6 +101,7 @@ async fn run() {
height: config.height,
},
&mut buffer,
Color::rgb(255, 255, 255),
&mut cache,
)
.unwrap();