Redesign for the v1 stable release #3

Merged
reya merged 30 commits from v1-redesign into master 2026-02-04 01:43:24 +00:00
Showing only changes of commit f5fcabd1aa - Show all commits

View File

@@ -24,7 +24,6 @@ impl RenderOnce for LinuxWindowControls {
fn render(self, window: &mut Window, _cx: &mut App) -> impl IntoElement {
h_flex()
.id("linux-window-controls")
.px_2()
.gap_2()
.on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation())
.child(WindowControl::new(
@@ -104,14 +103,14 @@ impl RenderOnce for WindowControl {
this.child(Icon::new(self.fallback).flex_grow().small())
}
})
.on_mouse_move(|_, _window, cx| cx.stop_propagation())
.on_click(move |_, window, cx| {
.on_mouse_move(|_ev, _window, cx| cx.stop_propagation())
.on_click(move |_ev, window, cx| {
cx.stop_propagation();
match self.kind {
LinuxControl::Minimize => window.minimize_window(),
LinuxControl::Restore => window.zoom_window(),
LinuxControl::Maximize => window.zoom_window(),
LinuxControl::Close => {}
LinuxControl::Close => cx.quit(),
}
})
}