mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
Add option_button_height style
This commit is contained in:
parent
9121178ba0
commit
d37ebe7841
3 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,7 @@ pub(crate) fn render_option_button_icon<V: View>(
|
|||
.contained()
|
||||
.with_style(style.container)
|
||||
.constrained()
|
||||
.with_height(22.)
|
||||
.with_height(theme.search.option_button_height)
|
||||
})
|
||||
.on_click(MouseButton::Left, on_click)
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
|
|
|
@ -390,6 +390,7 @@ pub struct Search {
|
|||
pub mode_button: Toggleable<Interactive<ContainedText>>,
|
||||
pub nav_button: Toggleable<Interactive<ContainedLabel>>,
|
||||
pub search_bar_row_height: f32,
|
||||
pub option_button_height: f32,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Default, JsonSchema)]
|
||||
|
|
|
@ -308,6 +308,7 @@ export default function search(): any {
|
|||
}
|
||||
}),
|
||||
search_bar_row_height: 32,
|
||||
option_button_height: 22,
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue