Commit 0358b68
committed
fix: skip inactive color when active and inactive colors are equal
When the inactive and active colors in QPalette are identical, the
system should not apply inactive color processing to avoid unnecessary
color calculations and potential visual inconsistencies. This change
adds a check to bypass inactive color usage when the QPalette's inactive
and active color groups are equal, ensuring more efficient rendering and
consistent visual behavior.
Log: Fixed an issue where inactive color processing was incorrectly
applied when active and inactive colors were identical, improving
rendering efficiency and visual consistency.
Influence:
1. Test UI components with identical active and inactive QPalette colors
to ensure they render correctly
2. Verify that components with different active/inactive colors still
properly apply inactive colors when appropriate
3. Check performance impact when switching between color states
4. Test with various control types to ensure consistent behavior across
the application
5. Verify that the fix doesn't break existing inactive state visual
effects
fix: 当QPalette中非活动色和活动色相同时跳过非活动色处理
当QPalette中的非活动色和活动色相同时,系统不应应用非活动色处理,以避免
不必要的颜色计算和潜在的视觉不一致。此更改添加了一个检查,当QPalette的非
活动色和活动色组相等时,跳过非活动色的使用,确保更高效的渲染和一致的视觉
行为。
Log: 修复了当活动色和非活动色相同时错误应用非活动色处理的问题,提高了渲
染效率和视觉一致性。
Influence:
1. 测试具有相同活动和非活动QPalette颜色的UI组件,确保它们正确渲染
2. 验证具有不同活动/非活动颜色的组件在适当时仍能正确应用非活动色
3. 检查在不同颜色状态之间切换时的性能影响
4. 测试各种控件类型,确保在整个应用程序中行为一致
5. 验证此修复不会破坏现有的非活动状态视觉效果
PMS: BUG-2988411 parent 6307600 commit 0358b68
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
848 | 858 | | |
849 | 859 | | |
850 | 860 | | |
| |||
0 commit comments