Remove background from Settings

This commit is contained in:
Héctor Ramón Jiménez 2020-01-05 18:11:54 +01:00
parent 5af4159848
commit 8d6f86b317
5 changed files with 9 additions and 34 deletions

View file

@ -281,12 +281,8 @@ pub trait Application: Sized {
resized = false;
}
let new_mouse_cursor = renderer.draw(
settings.background,
&primitive,
&debug.overlay(),
&mut target,
);
let new_mouse_cursor =
renderer.draw(&primitive, &debug.overlay(), &mut target);
debug.render_finished();

View file

@ -1,6 +1,4 @@
//! Configure your application.
use crate::Color;
#[cfg(target_os = "windows")]
#[path = "windows.rs"]
mod platform;
@ -17,16 +15,12 @@ pub struct Settings {
///
/// [`Window`]: struct.Window.html
pub window: Window,
/// The default background color of the application
pub background: Color,
}
impl Default for Settings {
fn default() -> Settings {
Settings {
window: Window::default(),
background: Color::WHITE,
}
}
}