Repository navigation
refactor(waylib): rename ColorContentsMode to ColorLoadPolicy - #1735
Merged
Merged
Conversation
There was a problem hiding this comment.
Sorry @zccrs, this pull request is too large to review
It changes 22,537 lines. Sourcery can review pull requests with up to 20,000 changed lines.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zccrs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
zccrs
force-pushed
the
zccrs/rename-color-load-policy
branch
from
November 30, 2026 08:12
5bc5e3a to
03b60b0
Compare
Reviewer's GuideAPIRename the public enum and the output layer and viewport properties, accessors, and change signals that expose it.
Uses of the APIUpdate rendering and output code to use the renamed policy and keep the existing render behavior and scheduling connections.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
zccrs
force-pushed
the
zccrs/rename-color-load-policy
branch
from
November 30, 2026 08:29
03b60b0 to
239e5d5
Compare
1. Rename WGlobal::ColorContentsMode enum and all derived property/accessor/signal names for naming consistency. 2. colorContentsMode()/setColorContentsMode() become colorLoadPolicy()/setColorLoadPolicy(); colorContentsModeChanged becomes colorLoadPolicyChanged; resolveColorContentsMode() becomes resolveColorLoadPolicy(). 3. No behavior change; split out of linuxdeepin#1275 so that PR only carries damage-tracking changes. refactor: 将 ColorContentsMode 重命名为 ColorLoadPolicy 1. 重命名 WGlobal::ColorContentsMode 枚举及其所有派生的 属性/访问器/信号名称,保持命名一致。 2. colorContentsMode()/setColorContentsMode() 改为 colorLoadPolicy()/setColorLoadPolicy();colorContentsModeChanged 改为 colorLoadPolicyChanged;resolveColorContentsMode() 改为 resolveColorLoadPolicy()。 3. 无行为变化;从 linuxdeepin#1275 中拆出,使该 PR 只保留 damage 跟踪相关改动。 Log: 重命名 ColorContentsMode 枚举及其访问器为 ColorLoadPolicy, 统一命名风格,无用户可见变化。 Influence: 1. 全量重新编译(cmake --build --preset ci)确认无编译错误 2. 搜索全仓库确认无残留的 ColorContentsMode/colorContentsMode 引用 3. 运行 ctest --preset ci 确认现有单测全部通过(无新增失败) 4. 检查 moc 生成代码中 Q_PROPERTY/Q_ENUM 反射信息是否随新名称正确更新 PMS:
zccrs
force-pushed
the
zccrs/rename-color-load-policy
branch
from
November 30, 2026 08:38
239e5d5 to
0e4722f
Compare
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.
Rename WGlobal::ColorContentsMode to ColorLoadPolicy, including all
derived property/accessor/signal names, for naming consistency across
the enum type and its accessors:
No behavior change. Split out of #1275 at its request, so that PR
only carries damage-tracking changes.
Test plan:
in test_wayland_ext_session_lock_v1, not touching this enum;
test_drm skipped, no hardware)
Summary by Sourcery
Enhancements: