Add option_button_height style

This commit is contained in:
Piotr Osiewicz 2023-08-14 12:10:37 +02:00
parent 9121178ba0
commit d37ebe7841
3 changed files with 3 additions and 1 deletions

View file

@ -177,7 +177,7 @@ pub(crate) fn render_option_button_icon<V: View>(
.contained() .contained()
.with_style(style.container) .with_style(style.container)
.constrained() .constrained()
.with_height(22.) .with_height(theme.search.option_button_height)
}) })
.on_click(MouseButton::Left, on_click) .on_click(MouseButton::Left, on_click)
.with_cursor_style(CursorStyle::PointingHand) .with_cursor_style(CursorStyle::PointingHand)

View file

@ -390,6 +390,7 @@ pub struct Search {
pub mode_button: Toggleable<Interactive<ContainedText>>, pub mode_button: Toggleable<Interactive<ContainedText>>,
pub nav_button: Toggleable<Interactive<ContainedLabel>>, pub nav_button: Toggleable<Interactive<ContainedLabel>>,
pub search_bar_row_height: f32, pub search_bar_row_height: f32,
pub option_button_height: f32,
} }
#[derive(Clone, Deserialize, Default, JsonSchema)] #[derive(Clone, Deserialize, Default, JsonSchema)]

View file

@ -308,6 +308,7 @@ export default function search(): any {
} }
}), }),
search_bar_row_height: 32, search_bar_row_height: 32,
option_button_height: 22,
} }
} }