fix formatting issues

macos-click-through
Keith Simmons 3 years ago
parent 551236a290
commit b7b06c59a0

@ -66,16 +66,14 @@ impl Cursor {
} }
pub fn foreground(&self, default_colors: &Colors) -> Color4f { pub fn foreground(&self, default_colors: &Colors) -> Color4f {
self self.style
.style
.as_ref() .as_ref()
.and_then(|s| s.colors.foreground) .and_then(|s| s.colors.foreground)
.unwrap_or(default_colors.background.unwrap()) .unwrap_or(default_colors.background.unwrap())
} }
pub fn background(&self, default_colors: &Colors) -> Color4f { pub fn background(&self, default_colors: &Colors) -> Color4f {
self self.style
.style
.as_ref() .as_ref()
.and_then(|s| s.colors.background) .and_then(|s| s.colors.background)
.unwrap_or(default_colors.foreground.unwrap()) .unwrap_or(default_colors.foreground.unwrap())

@ -164,8 +164,9 @@ impl GlutinWindowWrapper {
self.handle_focus_lost(); self.handle_focus_lost();
} }
} }
Event::RedrawRequested(..) | Event::RedrawRequested(..) | Event::WindowEvent { .. } => {
Event::WindowEvent { .. } => REDRAW_SCHEDULER.queue_next_frame(), REDRAW_SCHEDULER.queue_next_frame()
}
_ => {} _ => {}
} }
} }

Loading…
Cancel
Save