Add option_button_height style

Piotr Osiewicz created

Change summary

crates/search/src/search_bar.rs | 2 +-
crates/theme/src/theme.rs       | 1 +
styles/src/style_tree/search.ts | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)

Detailed changes

crates/search/src/search_bar.rs 🔗

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

crates/theme/src/theme.rs 🔗

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