BlueGit

ict rusty-teams

Files

rusty-teams / vendor / gpui-component / src / input / clear_button.rs

clear_button.rs

clear_button.rs 296 B Download Raw
1use gpui::App;
2
3use crate::{
4 Icon, IconName, Sizable as _,
5 button::{Button, ButtonVariants as _},
6};
7
8#[inline]
9pub(crate) fn clear_button(_: &App) -> Button {
10 Button::new("clean")
11 .icon(Icon::new(IconName::Close))
12 .text()
13 .xsmall()
14 .tab_stop(false)
15}