[0116] text-bg-color 改为在 concat_box 层级统一绘制圆角背景#3345
Merged
Conversation
- box_rep 新增 get_bg_color/set_bg_color 虚方法 - text_box_rep 重写以暴露 bg_color - concat_box_rep 新增 pre_display/post_display,统一扫描连续背景色片段并绘制圆角矩形 - 新增 rounded_text_bg_test 单元测试 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
将 text-bg-color 路径下的文本背景色从逐 text_box 直角矩形绘制,改为在 concat_box 层级统一绘制完整圆角矩形。
Changes
box_rep新增get_bg_color()/set_bg_color()虚方法text_box_rep重写以暴露内部bg_colorconcat_box_rep新增pre_display()/post_display():ren->polygon()填充圆角背景bg_color设为透明,避免重复绘制rounded_text_bg_test单元测试Test plan
xmake run rounded_text_bg_test全部通过xmake build stem编译通过🤖 Generated with Claude Code