wip
This commit is contained in:
parent
81ed961659
commit
15799f7af6
17 changed files with 481 additions and 148 deletions
|
@ -369,12 +369,15 @@ pub fn initialize_workspace(
|
|||
});
|
||||
}
|
||||
|
||||
pub fn build_window_options() -> WindowOptions<'static> {
|
||||
let bounds = if let Some((position, size)) = ZED_WINDOW_POSITION.zip(*ZED_WINDOW_SIZE) {
|
||||
WindowBounds::Fixed(RectF::new(position, size))
|
||||
} else {
|
||||
WindowBounds::Maximized
|
||||
};
|
||||
pub fn build_window_options(bounds: Option<WindowBounds>) -> WindowOptions<'static> {
|
||||
let bounds = bounds
|
||||
.or_else(|| {
|
||||
ZED_WINDOW_POSITION
|
||||
.zip(*ZED_WINDOW_SIZE)
|
||||
.map(|(position, size)| WindowBounds::Fixed(RectF::new(position, size)))
|
||||
})
|
||||
.unwrap_or(WindowBounds::Maximized);
|
||||
|
||||
WindowOptions {
|
||||
bounds,
|
||||
titlebar: Some(TitlebarOptions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue