外觀: the face above the input is smaller and stays in its own row
It was 64 px and reached 10 px up over the chat; now 40 px inside a 26 px row, so it never covers what was said, and the yellow dot is sized with it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uirha3QxSfoydRPM9mjj6d
This commit is contained in:
parent
22a2e99aa5
commit
fcf4ef3638
|
|
@ -2726,9 +2726,10 @@ impl App {
|
|||
return;
|
||||
}
|
||||
let p = self.pal;
|
||||
let (row, _) = ui.allocate_exact_size(vec2(ui.available_width(), 40.0), egui::Sense::hover());
|
||||
// (Its chin goes behind the input, which is drawn after it; the eyes stay clear.)
|
||||
let face = egui::Rect::from_min_size(row.left_top() + vec2(14.0, -10.0), vec2(64.0, 64.0));
|
||||
// Small, and inside its own row: it never reaches up over the chat. (Its chin goes behind
|
||||
// the input, which is drawn after it; the eyes stay clear.)
|
||||
let (row, _) = ui.allocate_exact_size(vec2(ui.available_width(), 26.0), egui::Sense::hover());
|
||||
let face = egui::Rect::from_min_size(row.left_top() + vec2(16.0, 2.0), vec2(40.0, 40.0));
|
||||
self.dock_face(ui, bot, face);
|
||||
let now = ui.input(|i| i.time);
|
||||
let waiting = self.approvals.contains_key(&bot.id);
|
||||
|
|
|
|||
|
|
@ -199,9 +199,11 @@ impl App {
|
|||
let col = self.bot_color(bot);
|
||||
avatar::paint_posed(ui.painter(), rect, &bot.shape, col, pose);
|
||||
if waiting {
|
||||
let at = rect.right_top() + vec2(-8.0, 8.0);
|
||||
ui.painter().circle_filled(at, 8.0, self.pal.pane);
|
||||
ui.painter().circle_filled(at, 6.0, self.pal.attention);
|
||||
// (Sized with the face.)
|
||||
let k = rect.width() / 64.0;
|
||||
let at = rect.right_top() + vec2(-7.0, 7.0) * k;
|
||||
ui.painter().circle_filled(at, 7.0 * k + 1.5, self.pal.pane);
|
||||
ui.painter().circle_filled(at, 6.0 * k, self.pal.attention);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue