Skip to content

[Feature][Clay][Text] Support selection handle style attrs#7483

Open
lynxassistant[bot] wants to merge 1 commit into
developfrom
shadow/p/ci_lynx/x-hand-size
Open

[Feature][Clay][Text] Support selection handle style attrs#7483
lynxassistant[bot] wants to merge 1 commit into
developfrom
shadow/p/ci_lynx/x-hand-size

Conversation

@lynxassistant

@lynxassistant lynxassistant Bot commented Jun 24, 2026

Copy link
Copy Markdown

No description provided.

@jianliang00 jianliang00 force-pushed the shadow/p/ci_lynx/x-hand-size branch from ef0bfa7 to eabcf6f Compare June 26, 2026 08:13
- Add Clay text selection handling for selection handle size and color attributes.

- Apply cached handle styles when selection handles are shown and rebuild visible handles from TextView when the handle size changes.

- Return configured handle radius from setTextSelection and use the last selected line for the end handle in multiline selections.

- Fix the built-in selection popup item line-height ratio so copy and select-all labels align with their menu bounds.

- Add unit coverage for handle radius updates, TextView-driven handle geometry rebuilds, handle color fallback, and setTextSelection handle metadata.

TEST: tools/env.sh git diff --check

TEST: tools/env.sh ninja -C out/clay_ut clay_unittests (fails at final link because zlib is missing from the command)

TEST: Manual link of out/clay_ut/clay_unittests with -lz

TEST: tools/env.sh ./out/clay_ut/clay_unittests --gtest_filter='TextSelectionTest.*:SelectionHandleViewTest.*'
@jianliang00 jianliang00 force-pushed the shadow/p/ci_lynx/x-hand-size branch from eabcf6f to 439185a Compare June 26, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants