Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): restore Windows accent color on PySide 6.8.0.1 (Fix #668) #755

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

CyanVoxel
Copy link
Member

This PR changes which ColorRole is used on Windows to select the system accent color. This seems to be a change made in PySide 6.8.0, however I can't find the change documented anywhere. The QPalette.ColorRole.AlternateBase ColorRole also doesn't seem to be quite the same as the old QPalette.ColorRole.Accent color, so I've had to boost the lightness value a bit here. Other platforms (only tested on macOS) still use the QPalette.ColorRole.Accent value since it works, while the QPalette.ColorRole.AlternateBase does not.

Fixes #668.

@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended Type: UI/UX User interface and/or user experience labels Jan 31, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5 (Post-SQL) milestone Jan 31, 2025
@CyanVoxel CyanVoxel merged commit e0d21c1 into main Jan 31, 2025
10 checks passed
@CyanVoxel CyanVoxel deleted the fix-668 branch January 31, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as intended Type: UI/UX User interface and/or user experience
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Accent Colors show as Gray on Windows with PySide 6.8.0.1
1 participant