better but still broken
This commit is contained in:
parent
5eac797a93
commit
a369fb8033
9 changed files with 294 additions and 236 deletions
|
@ -31,11 +31,11 @@ pub fn init(cx: &mut MutableAppContext) {
|
|||
let window_size = vec2f(theme.window_width, theme.window_height);
|
||||
|
||||
for screen in cx.platform().screens() {
|
||||
let screen_size = screen.size();
|
||||
let screen_bounds = screen.bounds();
|
||||
let (window_id, _) = cx.add_window(
|
||||
WindowOptions {
|
||||
bounds: WindowBounds::Fixed(RectF::new(
|
||||
vec2f(screen_size.x() - window_size.x() - PADDING, PADDING),
|
||||
screen_bounds.upper_right() - vec2f(PADDING + window_size.x(), PADDING),
|
||||
window_size,
|
||||
)),
|
||||
titlebar: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue