assistant: Polish /workflow and steps UI (#15936)
Fixes #15923 Release Notes: - Assistant workflow steps can now be applied and reverted directly from within the assistant panel. --------- Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
514b79e461
commit
73fb8277fc
15 changed files with 1157 additions and 450 deletions
|
@ -50,6 +50,7 @@ pub enum TintColor {
|
|||
Accent,
|
||||
Negative,
|
||||
Warning,
|
||||
Positive,
|
||||
}
|
||||
|
||||
impl TintColor {
|
||||
|
@ -73,6 +74,12 @@ impl TintColor {
|
|||
label_color: cx.theme().colors().text,
|
||||
icon_color: cx.theme().colors().text,
|
||||
},
|
||||
TintColor::Positive => ButtonLikeStyles {
|
||||
background: cx.theme().status().success_background,
|
||||
border_color: cx.theme().status().success_border,
|
||||
label_color: cx.theme().colors().text,
|
||||
icon_color: cx.theme().colors().text,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -83,6 +90,7 @@ impl From<TintColor> for Color {
|
|||
TintColor::Accent => Color::Accent,
|
||||
TintColor::Negative => Color::Error,
|
||||
TintColor::Warning => Color::Warning,
|
||||
TintColor::Positive => Color::Success,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -256,6 +256,7 @@ pub enum IconName {
|
|||
TextSearch,
|
||||
Trash,
|
||||
TriangleRight,
|
||||
Undo,
|
||||
Update,
|
||||
WholeWord,
|
||||
XCircle,
|
||||
|
@ -419,6 +420,7 @@ impl IconName {
|
|||
IconName::Trash => "icons/trash.svg",
|
||||
IconName::TriangleRight => "icons/triangle_right.svg",
|
||||
IconName::Update => "icons/update.svg",
|
||||
IconName::Undo => "icons/undo.svg",
|
||||
IconName::WholeWord => "icons/word_search.svg",
|
||||
IconName::XCircle => "icons/error.svg",
|
||||
IconName::ZedAssistant => "icons/zed_assistant.svg",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue