Remove background from Settings
This commit is contained in:
parent
5af4159848
commit
8d6f86b317
5 changed files with 9 additions and 34 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue