Fixed headless screenshot text color.

This commit is contained in:
Samuel Guerra 2024-01-31 17:31:17 -03:00
parent c52c80f0a5
commit d42ed28138
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,3 @@
* Window example headless screenshot does not use the color scheme?
- Test older commit.
# Documentation
* Add build dependencies for each operating system on the main `README.md`.

View File

@ -207,8 +207,10 @@ fn screenshot() -> impl UiNode {
enabled.set(false);
tracing::info!("taking `screenshot.png` using a new headless window ..");
let parent = WINDOW.id();
WINDOWS.open_headless(async_clmv!(enabled, {
Window! {
parent;
size = (500, 400);
background_color = web_colors::DARK_GREEN;
font_size = 72;