Use default font color and remove Color
This commit is contained in:
parent
7eb4d41c25
commit
4c1a83548e
3 changed files with 11 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue