Aligned title bar items to the center and fixed left spacing on the sign in button
co-authored-by: max <max@zed.dev>
This commit is contained in:
parent
f9d3963dbb
commit
bb5c2833a3
2 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,7 @@ impl View for CollabTitlebarItem {
|
||||||
let theme = cx.global::<Settings>().theme.clone();
|
let theme = cx.global::<Settings>().theme.clone();
|
||||||
|
|
||||||
let mut left_container = Flex::row();
|
let mut left_container = Flex::row();
|
||||||
let mut right_container = Flex::row();
|
let mut right_container = Flex::row().align_children_center();
|
||||||
|
|
||||||
left_container.add_child(
|
left_container.add_child(
|
||||||
Label::new(project_title, theme.workspace.titlebar.title.clone())
|
Label::new(project_title, theme.workspace.titlebar.title.clone())
|
||||||
|
@ -117,6 +117,7 @@ impl View for CollabTitlebarItem {
|
||||||
|
|
||||||
let status = workspace.read(cx).client().status();
|
let status = workspace.read(cx).client().status();
|
||||||
let status = &*status.borrow();
|
let status = &*status.borrow();
|
||||||
|
|
||||||
if matches!(status, client::Status::Connected { .. }) {
|
if matches!(status, client::Status::Connected { .. }) {
|
||||||
right_container.add_child(self.render_toggle_contacts_button(&theme, cx));
|
right_container.add_child(self.render_toggle_contacts_button(&theme, cx));
|
||||||
right_container.add_child(self.render_user_menu_button(&theme, cx));
|
right_container.add_child(self.render_user_menu_button(&theme, cx));
|
||||||
|
|
|
@ -174,6 +174,9 @@ export default function workspace(colorScheme: ColorScheme) {
|
||||||
// Sign in buttom
|
// Sign in buttom
|
||||||
// FlatButton, Variant
|
// FlatButton, Variant
|
||||||
signInPrompt: {
|
signInPrompt: {
|
||||||
|
margin: {
|
||||||
|
left: itemSpacing
|
||||||
|
},
|
||||||
...titlebarButton,
|
...titlebarButton,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue