Add more left padding to title bar (#3768)

This PR adds more left padding to the title bar to achieve the same
positioning of the title bar items that we have in Zed1.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-21 22:29:30 -05:00 committed by GitHub
parent 051bad734e
commit 5307b75b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,14 +74,13 @@ impl Render for CollabTitlebarItem {
// Set a non-scaling min-height here to ensure the titlebar is // Set a non-scaling min-height here to ensure the titlebar is
// always at least the height of the traffic lights. // always at least the height of the traffic lights.
.min_h(px(32.)) .min_h(px(32.))
.pl_2()
.map(|this| { .map(|this| {
if matches!(cx.window_bounds(), WindowBounds::Fullscreen) { if matches!(cx.window_bounds(), WindowBounds::Fullscreen) {
this.pl_2() this.pl_2()
} else { } else {
// Use pixels here instead of a rem-based size because the macOS traffic // Use pixels here instead of a rem-based size because the macOS traffic
// lights are a static size, and don't scale with the rest of the UI. // lights are a static size, and don't scale with the rest of the UI.
this.pl(px(72.)) this.pl(px(80.))
} }
}) })
.bg(cx.theme().colors().title_bar_background) .bg(cx.theme().colors().title_bar_background)