feat: redesign candidate comment layout with TOP/RIGHT/OVERLAY modes#1963
feat: redesign candidate comment layout with TOP/RIGHT/OVERLAY modes#1963Bambooin merged 1 commit intoosfans:developfrom
Conversation
457baf0 to
1d62f5d
Compare
There was a problem hiding this comment.
Pull request overview
Redesigns how candidate comments are laid out in the IME candidate item UI by replacing the legacy boolean toggle with explicit positioning modes driven by theme config.
Changes:
- Replaces
comment_on_topwithcomment_positionsupportingRIGHT,TOP, andOVERLAY. - Adds
candidate_text_vertical_biasandcomment_vertical_biasto tune overlay positioning. - Updates shared and test theme YAMLs and adjusts the theme decode default / expectations.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| app/src/main/java/com/osfans/trime/ime/candidates/CandidateItemUi.kt | Implements TOP/RIGHT/OVERLAY constraint layouts for candidate text + comment. |
| app/src/main/java/com/osfans/trime/data/theme/model/GeneralStyle.kt | Updates theme model/decoder: removes commentOnTop, adds biases, changes commentPosition defaults. |
| app/src/main/assets/shared/trime.yaml | Documents and sets new default style keys for comment positioning and overlay biases. |
| app/src/main/assets/shared/tongwenfeng.trime.yaml | Updates preset theme to new comment positioning keys and defaults. |
| app/src/test/assets/trime.yaml | Updates test theme asset to use comment_position: right and removes comment_on_top. |
| app/src/test/java/com/osfans/trime/data/theme/GeneralStyleTest.kt | Updates default expectation for commentPosition to RIGHT. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
app/src/main/java/com/osfans/trime/data/theme/model/GeneralStyle.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/osfans/trime/data/theme/model/GeneralStyle.kt
Outdated
Show resolved
Hide resolved
1d62f5d to
ce172bf
Compare
Thanks for the report. These issues do not appear to be related to this patch. This PR only modifies the styling of candidate text and comments, and does not touch ToolButton or its layout. The truncated |
|
I double checked that the issue shows up in this patch. The commit 75d6ace in main branch is fine. You can rebase your branch and build it to verify it. |
Perhaps we should re-test this patch itself rather than the main branch. As mentioned, this PR only modifies candidate text and comment styling, and does not involve ToolButton. |
|
I had verified the main branch and the branch in this patch. The main branch is fine, the issue shows up in this branch. Could you reproduce it in this branch? If you couldn't reproduce it, maybe I missed something. |
I tested on my device, emulator, and had a friend test as well — none of us could reproduce the issue. |
Bambooin
left a comment
There was a problem hiding this comment.
In LineageOS 23.2, the issue shows up, let's other people test it.


Pull request
Issue tracker
Fixes will automatically close the related issues
Fixes #
Fixes #
Feature
Describe features of this pull request
Code of conduct
Code style
make sytle-lintBuild pass
make debugManually test
Code Review
Daily build
Login and download artifact at https://github.com/osfans/trime/actions
Additional Info