M5: comment pop-ups follow PageCx's redaction look added since; Vietnamese for the pop-up undo labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz
This commit is contained in:
mtlcl410andClaude Opus 5.5 committed 2026-10-25 13:26:01 +08:00
1 parent f1bb95b2bf
commit fcd33e1316
2 files changed
+16 -1

No files matched your search

+11 -1
View File
@@ -1560,7 +1560,17 @@ pub(crate) fn popups(ctx: &egui::Context, view: &mut DocView, info: &DocInfo, hi
{ {
// The same size on the page, at the new place. // The same size on the page, at the new place.
let moved = Rect::from_min_size(at, placed.size()); let moved = Rect::from_min_size(at, placed.size());
let cx = PageCx { page, xf: &xf, info, tool: QuickTool::Select, prefs: &CommentPrefs::default(), allowed, hidden }; // Only converts the rectangle to user space: the redaction look is unused.
let cx = PageCx {
page,
xf: &xf,
info,
tool: QuickTool::Select,
prefs: &CommentPrefs::default(),
allowed,
hidden,
redact_mark: ([0.0; 3], 1.0),
};
let rect = cx.rect_to_user(moved); let rect = cx.rect_to_user(moved);
if at.distance(placed.left_top()) >= 2.0 { if at.distance(placed.left_top()) >= 2.0 {
edits.push(Edit::SetAnnotationPopup { page, index: a.index, rect: Some(rect), open: None }); edits.push(Edit::SetAnnotationPopup { page, index: a.index, rect: Some(rect), open: None });
+5
View File
@@ -2807,3 +2807,8 @@ key Space Space
# AI-assisted additions for restoring the last view (#1767) (2026-10-16); not reviewed by a native speaker. # AI-assisted additions for restoring the last view (#1767) (2026-10-16); not reviewed by a native speaker.
Restore the last view (page, zoom and page display) when a document is opened again Khôi phục chế độ xem gần nhất (trang, thu phóng và hiển thị trang) khi mở lại tài liệu Restore the last view (page, zoom and page display) when a document is opened again Khôi phục chế độ xem gần nhất (trang, thu phóng và hiển thị trang) khi mở lại tài liệu
@plural {n} reply|{n} replies {n} câu trả lời @plural {n} reply|{n} replies {n} câu trả lời
# AI-assisted additions for comment pop-up windows (2026-10-16); not reviewed by a native speaker.
Open comment pop-up Mở cửa sổ bật lên của bình luận
Close comment pop-up Đóng cửa sổ bật lên của bình luận
Move comment pop-up Di chuyển cửa sổ bật lên của bình luận
Can't render this file because it contains an unexpected character in line 493 and column 12.