From 6d3d393e25feb102a465ddf613447c47d65281ac Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Sun, 25 Oct 2026 03:17:11 +0300 Subject: [PATCH] =?UTF-8?q?Notation:=20the=20moves=20of=20a=20=C2=ABBetter?= =?UTF-8?q?:=C2=BB=20line=20are=20painted=20by=20hand=20too=20(no=20size?= =?UTF-8?q?=20change=20under=20the=20mouse)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- apps/desktop/src/notation.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/apps/desktop/src/notation.rs b/apps/desktop/src/notation.rs index 386d6ce..ca77c11 100644 --- a/apps/desktop/src/notation.rs +++ b/apps/desktop/src/notation.rs @@ -540,18 +540,8 @@ fn mark_block(ui: &mut Ui, n: &Notation, id: NodeId, mark: &Mark, out: &mut Nota None => san.clone(), }; let label = crate::san::show(&label).into_owned(); - let text = RichText::new(label).size(14.5); let current = shown == Some(i + 1); - let button = if current { - let sel = ui.visuals().selection; - egui::Button::new(text.color(sel.stroke.color).strong()) - .fill(sel.bg_fill) - .stroke(Stroke::new(1.0, sel.stroke.color)) - } else { - egui::Button::new(text).frame_when_inactive(false) - }; - let resp = ui - .add(button) + let resp = move_chip(ui, &label, None, current) .on_hover_text(tr("Show this line on the board")); if current && n.scroll_to_cursor { resp.scroll_to_me(Some(egui::Align::Center));