assistant2: Adjust elements in the message editor (#27696)

Most notable change in this PR is the changing the default profiles'
names to just "Write" and "Ask". Everything else is mostly
design-related. Here's how it looks like:

<img
src="https://github.com/user-attachments/assets/791948c9-2d63-4523-9d54-08b63a00be6a"
width="600" />

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-03-28 19:34:16 -03:00 committed by GitHub
parent d912b0dd36
commit 8b3eb98d86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 59 additions and 33 deletions

View file

@ -175,10 +175,14 @@ impl RenderOnce for ContextPill {
} => base_pill
.cursor_pointer()
.pr_1()
.when(*focused, |this| {
this.bg(color.element_background.opacity(0.5))
})
.border_dashed()
.border_color(if *focused {
color.border_focused
} else {
color.border_variant.opacity(0.5)
color.border
})
.hover(|style| style.bg(color.element_hover.opacity(0.5)))
.child(