chore: Upgrade to GPUI3 (#6)
* wip: gpui3 * wip: gpui3 * chore: fix clippy
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
use crate::{
|
||||
button::{Button, ButtonVariants as _},
|
||||
theme::{scale::ColorScaleStep, ActiveTheme as _},
|
||||
Icon, IconName, Sizable as _,
|
||||
};
|
||||
use gpui::{Styled, WindowContext};
|
||||
|
||||
pub(crate) struct ClearButton {}
|
||||
|
||||
impl ClearButton {
|
||||
#[allow(clippy::new_ret_no_self)]
|
||||
pub fn new(cx: &mut WindowContext) -> Button {
|
||||
Button::new("clean")
|
||||
.icon(
|
||||
Icon::new(IconName::CircleX)
|
||||
.text_color(cx.theme().base.step(cx, ColorScaleStep::ELEVEN)),
|
||||
)
|
||||
.ghost()
|
||||
.xsmall()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user