Formatting

This commit is contained in:
bungoboingo 2023-01-09 10:19:12 -08:00
parent ec41918ec4
commit 3e5d34f25f
4 changed files with 81 additions and 25 deletions

View file

@ -57,9 +57,9 @@ enum WindowMessage {
}
impl Application for Example {
type Executor = executor::Default;
type Message = Message;
type Theme = Theme;
type Executor = executor::Default;
type Flags = ();
fn new(_flags: ()) -> (Self, Command<Message>) {
@ -251,10 +251,6 @@ impl Application for Example {
})
}
fn close_requested(&self, window: window::Id) -> Self::Message {
Message::Window(window, WindowMessage::CloseWindow)
}
fn view(&self, window_id: window::Id) -> Element<Message> {
if let Some(window) = self.windows.get(&window_id) {
let focus = window.focus;
@ -342,6 +338,10 @@ impl Application for Example {
.center_y()
.into()
}
fn close_requested(&self, window: window::Id) -> Self::Message {
Message::Window(window, WindowMessage::CloseWindow)
}
}
const PANE_ID_COLOR_UNFOCUSED: Color = Color::from_rgb(