This reverts commit b479d1ef49.
This PR was accidentally merged prematurely.
https://github.com/zed-industries/zed/pull/38834#issuecomment-3424186051
cc @danilo-leal
Release Notes:
- N/A
28 lines
969 B
Rust
28 lines
969 B
Rust
use settings::{Settings, SettingsContent};
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
pub struct TitleBarSettings {
|
|
pub show_branch_icon: bool,
|
|
pub show_onboarding_banner: bool,
|
|
pub show_user_picture: bool,
|
|
pub show_branch_name: bool,
|
|
pub show_project_items: bool,
|
|
pub show_sign_in: bool,
|
|
pub show_menus: bool,
|
|
}
|
|
|
|
impl Settings for TitleBarSettings {
|
|
fn from_settings(s: &SettingsContent) -> Self {
|
|
let content = s.title_bar.clone().unwrap();
|
|
TitleBarSettings {
|
|
show_branch_icon: content.show_branch_icon.unwrap(),
|
|
show_onboarding_banner: content.show_onboarding_banner.unwrap(),
|
|
show_user_picture: content.show_user_picture.unwrap(),
|
|
show_branch_name: content.show_branch_name.unwrap(),
|
|
show_project_items: content.show_project_items.unwrap(),
|
|
show_sign_in: content.show_sign_in.unwrap(),
|
|
show_menus: content.show_menus.unwrap(),
|
|
}
|
|
}
|
|
}
|