Rename Settings::background_color to background
This commit is contained in:
parent
f74ab463d4
commit
89a6b8a9a1
3 changed files with 6 additions and 6 deletions
|
|
@ -14,14 +14,14 @@ pub struct Settings {
|
||||||
/// The default background [`Color`] of the application
|
/// The default background [`Color`] of the application
|
||||||
///
|
///
|
||||||
/// [`Color`]: ../struct.Color.html
|
/// [`Color`]: ../struct.Color.html
|
||||||
pub background_color: Color,
|
pub background: Color,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Settings {
|
impl Default for Settings {
|
||||||
fn default() -> Settings {
|
fn default() -> Settings {
|
||||||
Settings {
|
Settings {
|
||||||
window: Window::default(),
|
window: Window::default(),
|
||||||
background_color: Color::WHITE,
|
background: Color::WHITE,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +59,7 @@ impl From<Settings> for iced_winit::Settings {
|
||||||
decorations: settings.window.decorations,
|
decorations: settings.window.decorations,
|
||||||
platform_specific: Default::default(),
|
platform_specific: Default::default(),
|
||||||
},
|
},
|
||||||
background_color: settings.background_color,
|
background: settings.background,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ pub trait Application: Sized {
|
||||||
}
|
}
|
||||||
|
|
||||||
let new_mouse_cursor = renderer.draw(
|
let new_mouse_cursor = renderer.draw(
|
||||||
settings.background_color,
|
settings.background,
|
||||||
&primitive,
|
&primitive,
|
||||||
&debug.overlay(),
|
&debug.overlay(),
|
||||||
&mut target,
|
&mut target,
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,14 @@ pub struct Settings {
|
||||||
pub window: Window,
|
pub window: Window,
|
||||||
|
|
||||||
/// The default background color of the application
|
/// The default background color of the application
|
||||||
pub background_color: Color,
|
pub background: Color,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Settings {
|
impl Default for Settings {
|
||||||
fn default() -> Settings {
|
fn default() -> Settings {
|
||||||
Settings {
|
Settings {
|
||||||
window: Window::default(),
|
window: Window::default(),
|
||||||
background_color: Color::WHITE,
|
background: Color::WHITE,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue