Z-2276/Z-2275: Project & Branch switchers (#2662)

This PR adds project and branch switchers in top left corner. 

Release Notes:
- Added a project & branch switcher under project name.
This commit is contained in:
Nate Butler
2023-07-05 13:09:40 -04:00
committed by GitHub
16 changed files with 601 additions and 68 deletions
+2
View File
@@ -46,6 +46,8 @@ export default function contact_finder(): any {
no_matches: picker_style.no_matches,
input_editor: picker_input,
empty_input_editor: picker_input,
header: picker_style.header,
footer: picker_style.footer,
},
row_height: 28,
contact_avatar: {
+18
View File
@@ -110,5 +110,23 @@ export default function picker(): any {
top: 8,
},
},
header: {
text: text(theme.lowest, "sans", "variant", { size: "xs" }),
margin: {
top: 1,
left: 8,
right: 8,
},
},
footer: {
text: text(theme.lowest, "sans", "variant", { size: "xs" }),
margin: {
top: 1,
left: 8,
right: 8,
},
}
}
}
+8 -2
View File
@@ -179,8 +179,14 @@ export function titlebar(): any {
},
// Project
title: text(theme.lowest, "sans", "variant"),
highlight_color: text(theme.lowest, "sans", "active").color,
project_name_divider: text(theme.lowest, "sans", "variant"),
project_menu_button: toggleable_text_button(theme, {
color: 'base',
}),
git_menu_button: toggleable_text_button(theme, {
color: 'variant',
}),
// Collaborators
leader_avatar: {