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
commit 76873c508a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 601 additions and 68 deletions

View file

@ -46,10 +46,16 @@ pub trait PickerDelegate: Sized + 'static {
fn center_selection_after_match_updates(&self) -> bool {
false
}
fn render_header(&self, _cx: &AppContext) -> Option<AnyElement<Picker<Self>>> {
fn render_header(
&self,
_cx: &mut ViewContext<Picker<Self>>,
) -> Option<AnyElement<Picker<Self>>> {
None
}
fn render_footer(&self, _cx: &AppContext) -> Option<AnyElement<Picker<Self>>> {
fn render_footer(
&self,
_cx: &mut ViewContext<Picker<Self>>,
) -> Option<AnyElement<Picker<Self>>> {
None
}
}