Commit ad0ed8c
committed
fix: adjust scrollbar visibility based on system theme policy
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-3390511 parent 6094967 commit ad0ed8c
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4623 | 4623 | | |
4624 | 4624 | | |
4625 | 4625 | | |
4626 | | - | |
4627 | | - | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
4628 | 4636 | | |
4629 | 4637 | | |
4630 | 4638 | | |
| |||
0 commit comments