diff options
author | 2020-06-14 18:10:14 +0200 | |
---|---|---|
committer | 2020-06-14 18:10:14 +0200 | |
commit | 50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d (patch) | |
tree | 6cb1e2cfa8e2933b8edf4cc05e9fb60724903904 /glutin | |
parent | f131969c47bb4a32d60d5be4c2bece0688b0a418 (diff) | |
parent | 4c0286e8acdf0792a9680f6f8212a534a51e3da0 (diff) | |
download | iced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.tar.gz iced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.tar.bz2 iced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.zip |
Merge pull request #406 from hecrj/feature/background-color
Add `background_color` to `Application` and `Sandbox`
Diffstat (limited to '')
-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(), ); |