adjusted icon sizes downwards

Co-authored-by: Piotr <piotr@zed.dev>
This commit is contained in:
KCaverly 2023-08-16 14:01:06 +01:00
parent 6f78a1633d
commit 2a7df106e1
5 changed files with 18 additions and 9 deletions

View file

@ -250,7 +250,7 @@ impl View for BufferSearchBar {
SearchOptions::WHOLE_WORD,
cx,
))
.flex(1., true)
.flex_float()
.contained(),
)
.align_children_center()

View file

@ -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()

View file

@ -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)

View file

@ -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,