Make titlebar taller and position traffic lights accordingly

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-09-07 18:37:45 +02:00
parent c4dac3c6b1
commit d08ec438ed
3 changed files with 65 additions and 3 deletions

View file

@ -142,6 +142,7 @@ fn window_options() -> WindowOptions<'static> {
bounds: RectF::new(vec2f(0., 0.), vec2f(1024., 768.)),
title: None,
titlebar_appears_transparent: true,
traffic_light_position: Some(vec2f(8., 8.)),
}
}
@ -952,7 +953,7 @@ impl View for Workspace {
Flex::column()
.with_child(
ConstrainedBox::new(Empty::new().boxed())
.with_height(cx.titlebar_height)
.with_height(32.)
.named("titlebar"),
)
.with_child(