Skip to content

Conversation

@JulienMaille
Copy link
Contributor

Expose system accent color

JulienMaille and others added 2 commits December 7, 2025 21:04
- Add `QColor systemAccentColor() const` and `void systemAccentColorChanged()` to `StyleAgent`.
- Implement Windows support using `QWK::getAccentColor` and existing event hooks.
- Implement macOS support using `NSColor.controlAccentColor` and `AppleColorPreferencesChangedNotification`.
- Implement Linux/Generic support using `QPalette::Accent` (Qt 6.6+) or `QPalette::Highlight` as a fallback.
- Update `StyleAgentPrivate` to handle accent color state and notifications.
- Add `examples/accent_color` for validation.
Copy link
Collaborator

@wangwenx190 wangwenx190 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really thanks for your contribution!

@wangwenx190 wangwenx190 self-assigned this Dec 13, 2025
@wangwenx190 wangwenx190 added the enhancement New feature or request label Dec 13, 2025
Copy link
Collaborator

@wangwenx190 wangwenx190 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Looks good to me now!

@wangwenx190
Copy link
Collaborator

@SineStriker maybe have a look at this PR

@wangwenx190
Copy link
Collaborator

@SineStriker has a +1 for this PR.

@wangwenx190 wangwenx190 merged commit 4677e51 into stdware:main Dec 13, 2025
@JulienMaille JulienMaille deleted the feature/styleagent-accent-color branch December 13, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants