assistant2: Add tiny design improvements (#27399)
Really small stuff, like adding icons and adjusting colors. Release Notes: - N/A
This commit is contained in:
parent
bcfc9e4437
commit
c32dece1b8
8 changed files with 11 additions and 5 deletions
|
@ -1258,12 +1258,13 @@ impl ActiveThread {
|
|||
"edit-files" => IconName::Pencil,
|
||||
"fetch" => IconName::Globe,
|
||||
"list-directory" => IconName::Folder,
|
||||
"move-path" => IconName::ArrowRightLeft,
|
||||
"now" => IconName::Info,
|
||||
"path-search" => IconName::SearchCode,
|
||||
"read-file" => IconName::Eye,
|
||||
"regex-search" => IconName::Regex,
|
||||
"thinking" => IconName::Brain,
|
||||
_ => IconName::Terminal,
|
||||
_ => IconName::Cog,
|
||||
};
|
||||
|
||||
div().py_2().child(
|
||||
|
|
|
@ -67,7 +67,7 @@ impl ContextPickerMode {
|
|||
|
||||
pub fn label(&self) -> &'static str {
|
||||
match self {
|
||||
Self::File => "File/Directory",
|
||||
Self::File => "Files & Directories",
|
||||
Self::Fetch => "Fetch",
|
||||
Self::Thread => "Thread",
|
||||
}
|
||||
|
|
|
@ -821,7 +821,7 @@ mod tests {
|
|||
format!("six.txt {}", separator!("dir/b")).as_str(),
|
||||
format!("five.txt {}", separator!("dir/b")).as_str(),
|
||||
format!("four.txt {}", separator!("dir/a")).as_str(),
|
||||
"File/Directory",
|
||||
"Files & Directories",
|
||||
"Fetch"
|
||||
]
|
||||
);
|
||||
|
|
|
@ -38,7 +38,7 @@ impl Tool for BashTool {
|
|||
|
||||
fn ui_text(&self, input: &serde_json::Value) -> String {
|
||||
match serde_json::from_value::<BashToolInput>(input.clone()) {
|
||||
Ok(input) => format!("`$ {}`", input.command),
|
||||
Ok(input) => format!("`{}`", input.command),
|
||||
Err(_) => "Run bash command".to_string(),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -547,7 +547,8 @@ impl CompletionsMenu {
|
|||
.or_else(|| {
|
||||
completion.icon_path.as_ref().map(|path| {
|
||||
Icon::from_path(path)
|
||||
.size(IconSize::Small)
|
||||
.size(IconSize::XSmall)
|
||||
.color(Color::Muted)
|
||||
.into_any_element()
|
||||
})
|
||||
});
|
||||
|
|
|
@ -140,6 +140,7 @@ pub enum IconName {
|
|||
ArrowDownFromLine,
|
||||
ArrowLeft,
|
||||
ArrowRight,
|
||||
ArrowRightLeft,
|
||||
ArrowUp,
|
||||
ArrowUpFromLine,
|
||||
ArrowUpRight,
|
||||
|
@ -170,6 +171,7 @@ pub enum IconName {
|
|||
Circle,
|
||||
Close,
|
||||
Code,
|
||||
Cog,
|
||||
Command,
|
||||
Context,
|
||||
Control,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue