Fix more settings UX problems (#39760)

And remove the feature flag for now.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2025-10-08 10:34:06 +00:00
committed by GitHub
parent 4152942a8e
commit 4ec24ebe01
5 changed files with 106 additions and 117 deletions
+5
View File
@@ -1213,6 +1213,11 @@ impl WindowBounds {
WindowBounds::Fullscreen(bounds) => *bounds,
}
}
/// Creates a new window bounds that centers the window on the screen.
pub fn centered(size: Size<Pixels>, cx: &App) -> Self {
WindowBounds::Windowed(Bounds::centered(None, size, cx))
}
}
impl Default for WindowOptions {