fix(editor): add backdrop box behind active agent-chip provider icon
The TS top-bar shows the active provider glyph inside a rounded bg-muted box; the Rust chip painted the bare icon, so a spinning/active provider read as a floating glyph with no chip affordance. Paint a theme.muted rounded backdrop (pad 4, radius 5) behind the brand icon(s) to match.
This commit is contained in:
parent
a26e1b0f48
commit
ae492e7aa2
|
|
@ -266,6 +266,17 @@ impl TopBar {
|
|||
1.4,
|
||||
);
|
||||
} else {
|
||||
// Light rounded backdrop behind the brand icon(s) — the TS active
|
||||
// chip shows the provider glyph in a `bg-muted` rounded box.
|
||||
let pad = 4.0;
|
||||
cx.backend.fill_round_rect(
|
||||
Rect {
|
||||
origin: Point2D::new(chip_rect.origin.x + 8.0 - pad, icons_y - pad),
|
||||
size: Point2D::new(icons_w + pad * 2.0, ICON_SIZE + pad * 2.0),
|
||||
},
|
||||
5.0,
|
||||
self.theme.muted,
|
||||
);
|
||||
let mut ix = chip_rect.origin.x + 8.0;
|
||||
for (i, provider) in op_editor_core::AgentProvider::ALL.iter().enumerate() {
|
||||
if !self.connected[i] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue