Fixed headless screenshot text color.
This commit is contained in:
parent
c52c80f0a5
commit
d42ed28138
|
@ -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`.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue