Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
adjusted icon sizes downwards
KCaverly2a7df106e124
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex 0637191f971..3e13f49181d 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -250,7 +250,7 @@ impl View for BufferSearchBar {SearchOptions::WHOLE_WORD,cx,))- .flex(1., true)+ .flex_float().contained(),).align_children_center()diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rsindex 884f56bda5b..323c33bc564 100644--- a/crates/search/src/project_search.rs+++ b/crates/search/src/project_search.rs@@ -1447,7 +1447,8 @@ impl View for ProjectSearchBar {.with_child(filter_button).with_children(case_sensitive).with_children(whole_word)- .flex(1., true)+ .flex(1., false)+ .constrained().contained(),).align_children_center()diff --git a/crates/search/src/search_bar.rs b/crates/search/src/search_bar.rsindex 88d46751022..f227ced0d42 100644--- a/crates/search/src/search_bar.rs+++ b/crates/search/src/search_bar.rs@@ -185,11 +185,15 @@ pub(crate) fn render_option_button_icon<V: View>(.in_state(is_active).style_for(state);Svg::new(icon)- .with_color(style.text.color.clone())+ .with_color(style.color.clone())+ .constrained()+ .with_width(style.icon_width).contained().with_style(style.container)+ // .aligned().constrained().with_height(theme.search.option_button_height)+ .with_width(style.button_width)}).on_click(MouseButton::Left, on_click).with_cursor_style(CursorStyle::PointingHand)diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rsindex 5ee11a4d94c..df6dbe9f556 100644--- a/crates/theme/src/theme.rs+++ b/crates/theme/src/theme.rs@@ -379,7 +379,7 @@ pub struct Search {pub include_exclude_editor: FindEditor,pub invalid_include_exclude_editor: ContainerStyle,pub include_exclude_inputs: ContainedText,- pub option_button: Toggleable<Interactive<ContainedText>>,+ pub option_button: Toggleable<Interactive<IconButton>>,pub action_button: Toggleable<Interactive<ContainedText>>,pub match_background: Color,pub match_index: ContainedText,diff --git a/styles/src/style_tree/search.ts b/styles/src/style_tree/search.tsindex 4dfa9624b4b..b5259886b97 100644--- a/styles/src/style_tree/search.ts+++ b/styles/src/style_tree/search.ts@@ -2,6 +2,7 @@ import { with_opacity } from "../theme/color"import { background, border, foreground, text } from "./components"import { interactive, toggleable } from "../element"import { useTheme } from "../theme"+import { toggleable_icon_button } from "../component/icon_button"export default function search(): any {const theme = useTheme()@@ -43,7 +44,9 @@ export default function search(): any {option_button: toggleable({base: interactive({base: {- ...text(theme.highest, "mono", "variant"),+ icon_width: 14,+ button_width: 32,+ color: foreground(theme.highest, "variant"),background: background(theme.highest, "on"),corner_radius: 2,margin: { right: 2 },@@ -53,6 +56,8 @@ export default function search(): any {padding: {left: 4,right: 4,+ top: 4,+ bottom: 4,},},state: {@@ -75,6 +80,9 @@ export default function search(): any {state: {active: {default: {+ icon_width: 14,+ button_width: 32,+ color: foreground(theme.highest, "variant"),background: background(theme.highest, "accent"),border: border(theme.highest, "accent"),},@@ -272,10 +280,8 @@ export default function search(): any {},padding: {- bottom: 0,left: 10,right: 10,- top: 0,},},state: {@@ -294,10 +300,8 @@ export default function search(): any {},padding: {- bottom: 0,left: 10,right: 10,- top: 0,},},state: {