Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

assistant2: Add adjustments to OS notification (#27615)

Danilo Lealdf6ee1fc4a2a
diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs
index 1da61b6585f..9512d2343d3 100644
--- a/crates/assistant2/src/active_thread.rs
+++ b/crates/assistant2/src/active_thread.rs
@@ -381,7 +381,7 @@ impl ActiveThread {
ThreadEvent::DoneStreaming => {
if !self.thread().read(cx).is_generating() {
self.show_notification(
- "Your changes have been applied.",
+ "The assistant response has concluded.",
IconName::Check,
Color::Success,
window,
diff --git a/crates/assistant2/src/ui/tool_ready_pop_up.rs b/crates/assistant2/src/ui/tool_ready_pop_up.rs
index 4fc0b3b2c11..ca9af802a3c 100644
--- a/crates/assistant2/src/ui/tool_ready_pop_up.rs
+++ b/crates/assistant2/src/ui/tool_ready_pop_up.rs
@@ -24,7 +24,7 @@ impl ToolReadyPopUp {
pub fn window_options(screen: Rc<dyn PlatformDisplay>, cx: &App) -> WindowOptions {
let size = Size {
- width: px(440.),
+ width: px(450.),
height: px(72.),
};
@@ -93,8 +93,18 @@ impl Render for ToolReadyPopUp {
)
.child(
v_flex()
- .child(Headline::new("Agent Panel").size(HeadlineSize::XSmall))
- .child(Label::new(self.caption.clone()).color(Color::Muted)),
+ .child(
+ div()
+ .text_size(px(16.))
+ .text_color(cx.theme().colors().text)
+ .child("Agent Panel"),
+ )
+ .child(
+ div()
+ .text_size(px(14.))
+ .text_color(cx.theme().colors().text_muted)
+ .child(self.caption.clone()),
+ ),
),
)
.child(