Conversation
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.
[0833] 绘图区进入时背景不填充为淡蓝色
1 相关文档
2 任务相关的代码文件
src/Edit/Interface/edit_interface.cpp— 聚焦矩形foc_rects计算时增加!inside_graphics(false)特判3 如何测试
3.1 确定性测试(单元测试)
3.2 非确定性测试(交互验证)
4 What
在之前的任务(PR #2888 /
213_22.md)中,聚焦指示由高亮边框改为了半透明淡蓝色背景填充。这导致在进入绘图区(graphics)时,整个画布区域被识别为聚焦环境,导致整个绘图画布全部变成淡蓝色。
5 How
在
edit_interface.cpp的apply_changes函数计算foc_rects中,追加!inside_graphics(false)判定条件:当位于绘图区内部时,跳过
foc_rects的计算(使其保持为空矩形),从而避免整个绘图画布在重绘时被填充聚焦色。