Comments: an opacity control in the quick bar (per tool, 10-100 %)

The comment tools' quick bar had colour and line thickness but no opacity,
though comments already carry it (/CA) and the Properties dialog edits it.
An Opacity slider joins them for every tool; set_opacity clamps to 10-100 %
so a comment can't be made invisible. Test: a strikeout made at 50 % carries
/CA 0.5. Parity comment.properties-bar: shipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-05 19:12:24 -04:00
co-authored by Claude Opus 5.5
parent c02e1e91c2
commit b4e1d488de
3 changed files with 50 additions and 4 deletions
+3 -3
View File
@@ -3767,11 +3767,11 @@ title = "Comment properties bar"
area = "E"
tier = "P1"
milestone = "M5"
status = "partial"
status = "shipped"
commands = ["comment.note"]
tools = ["comment_edit"]
evidence = ["crates/annot/src/tests.rs::restyle_and_resize_redraw_the_appearance"]
notes = "quick-bar colour swatches and line thickness per tool, colour from the context menu; no opacity control in the UI yet"
evidence = ["crates/annot/src/tests.rs::restyle_and_resize_redraw_the_appearance", "crates/ui-egui/tests/comments.rs::the_opacity_set_for_a_tool_goes_into_its_new_comments"]
notes = "quick-bar colour swatches, opacity (10–100 %) and line thickness per tool; colour from the context menu"
[[feature]]
id = "comment.lock-comment"