Fix Input clean button size. (#115)

This commit is contained in:
Jason Lee 2024-08-06 23:51:09 +08:00 committed by GitHub
parent d172dc3abd
commit cbffb9a543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1071,7 +1071,7 @@ impl Render for TextInput {
Button::new("clean-text", cx) Button::new("clean-text", cx)
.icon(IconName::Close) .icon(IconName::Close)
.style(ButtonStyle::Ghost) .style(ButtonStyle::Ghost)
.size(px(15.)) .with_size(px(15.))
.cursor_pointer() .cursor_pointer()
.on_click(cx.listener(Self::clean)), .on_click(cx.listener(Self::clean)),
) )

View file

@ -201,7 +201,7 @@ impl Colors {
tab_bar: hsl(240.0, 4.8, 95.9), tab_bar: hsl(240.0, 4.8, 95.9),
list: hsl(0.0, 0.0, 100.), list: hsl(0.0, 0.0, 100.),
list_even: hsl(240.0, 5.0, 96.0), list_even: hsl(240.0, 5.0, 96.0),
list_active: hsl(240.0, 7., 88.0), list_active: hsl(240.0, 7., 88.0).opacity(0.75),
list_head: hsl(240.0, 0., 94.), list_head: hsl(240.0, 0., 94.),
link: hsl(221.0, 83.0, 53.0), link: hsl(221.0, 83.0, 53.0),
menu: hsl(0.0, 0.0, 97.0), menu: hsl(0.0, 0.0, 97.0),