diff options
author | 2020-06-12 22:12:15 +0200 | |
---|---|---|
committer | 2020-06-12 22:12:15 +0200 | |
commit | 4c0286e8acdf0792a9680f6f8212a534a51e3da0 (patch) | |
tree | 6d478a1074a33b1ab66d5758530bac548106ef94 /glutin/src | |
parent | 2a516dfc4823feb16054e8d484637014e4eedcce (diff) | |
download | iced-4c0286e8acdf0792a9680f6f8212a534a51e3da0.tar.gz iced-4c0286e8acdf0792a9680f6f8212a534a51e3da0.tar.bz2 iced-4c0286e8acdf0792a9680f6f8212a534a51e3da0.zip |
Add `background_color` to `Application` and `Sandbox`
Diffstat (limited to 'glutin/src')
-rw-r--r-- | glutin/src/application.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 4f36114c..63d41573 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -47,6 +47,7 @@ pub fn run<A, E, C>( let mut title = application.title(); let mut mode = application.mode(); + let mut background_color = application.background_color(); let context = { let builder = settings.window.into_builder( @@ -138,6 +139,9 @@ pub fn run<A, E, C>( mode = new_mode; } + + // Update background color + background_color = program.background_color(); } context.window().request_redraw(); @@ -164,6 +168,7 @@ pub fn run<A, E, C>( let new_mouse_interaction = compositor.draw( &mut renderer, &viewport, + background_color, state.primitive(), &debug.overlay(), ); |