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 {
self
.style
self.style
.as_ref()
.and_then(|s| s.colors.foreground)
.unwrap_or(default_colors.background.unwrap())
}
pub fn background(&self, default_colors: &Colors) -> Color4f {
self
.style
self.style
.as_ref()
.and_then(|s| s.colors.background)
.unwrap_or(default_colors.foreground.unwrap())

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

Loading…
Cancel
Save