settings ui: Add tab_bar.show_tab_bar_buttons to settings UI (#43746)
Release Notes: - Added "Show Tab Bar Buttons" setting to Settings UI to control visibility of New, Split Pane, and Zoom buttons in the tab bar. <img width="899" height="750" alt="Screenshot 2025-11-28 at 12 37 08 PM" src="https://github.com/user-attachments/assets/9894da7b-9702-4b37-9adb-ae0e43c87edf" />
This commit is contained in:
@@ -3065,6 +3065,28 @@ pub(crate) fn settings_data(cx: &App) -> Vec<SettingsPage> {
|
||||
metadata: None,
|
||||
files: USER,
|
||||
}),
|
||||
SettingsPageItem::SettingItem(SettingItem {
|
||||
title: "Show Tab Bar Buttons",
|
||||
description: "Show the tab bar buttons (New, Split Pane, Zoom).",
|
||||
field: Box::new(SettingField {
|
||||
json_path: Some("tab_bar.show_tab_bar_buttons"),
|
||||
pick: |settings_content| {
|
||||
settings_content
|
||||
.tab_bar
|
||||
.as_ref()?
|
||||
.show_tab_bar_buttons
|
||||
.as_ref()
|
||||
},
|
||||
write: |settings_content, value| {
|
||||
settings_content
|
||||
.tab_bar
|
||||
.get_or_insert_default()
|
||||
.show_tab_bar_buttons = value;
|
||||
},
|
||||
}),
|
||||
metadata: None,
|
||||
files: USER,
|
||||
}),
|
||||
SettingsPageItem::SectionHeader("Tab Settings"),
|
||||
SettingsPageItem::SettingItem(SettingItem {
|
||||
title: "Activate On Close",
|
||||
|
||||
Reference in New Issue
Block a user