fix: adjust scrollbar visibility based on system theme policy #301
+5
−5
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.
Changed the scrollbar visibility initialization logic in ChameleonStyle to respect system theme's scrollbar policy. Previously, scrollbars were always set to visible by default, then hidden via animation. Now, when the system theme specifies Qt::ScrollBarAsNeeded policy, scrollbars start as invisible; otherwise, they remain visible by default. This ensures proper scrollbar behavior alignment with user's system preferences.
fix: 根据系统主题策略调整滚动条可见性
修改了ChameleonStyle中滚动条可见性的初始化逻辑,以遵循系统主题的滚动条
策略。之前滚动条始终默认设置为可见,然后通过动画隐藏。现在,当系统主题指
定Qt::ScrollBarAsNeeded策略时,滚动条初始为不可见;其他情况下保持默认可
见。这确保了滚动条行为与用户系统偏好设置的一致性。
PMS: BUG-339051