mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-12-23 10:11:57 +00:00
feat: update window to be more launcher-like
This commit is contained in:
parent
0dbc5c4fd6
commit
237f4cddd2
1 changed files with 8 additions and 1 deletions
|
|
@ -38,7 +38,14 @@ pub fn update(state: &mut State, message: Message) -> Task<Message> {
|
|||
if let Some(id) = state.window_id {
|
||||
return window::close(id);
|
||||
} else {
|
||||
let (id, open) = window::open(window::Settings::default());
|
||||
let (id, open) = window::open(window::Settings {
|
||||
decorations: false,
|
||||
level: window::Level::AlwaysOnTop,
|
||||
resizable: false,
|
||||
// TODO: these sizes are copied from raycast
|
||||
size: iced::Size::new(774.0, 474.0),
|
||||
..Default::default()
|
||||
});
|
||||
return open.map(move |_| Message::WindowOpened(id));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue