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()
|
.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)
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
|
@ -308,6 +308,7 @@ export default function search(): any {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
search_bar_row_height: 32,
|
search_bar_row_height: 32,
|
||||||
|
option_button_height: 22,
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue