Use DynamicResource for TextBox SelectionBrush#4308
Conversation
Changed SelectionBrush in TextBox style from StaticResource to DynamicResource for SystemAccentColorLight1Brush. This enables automatic updates to the selection color when the resource changes at runtime, improving theme responsiveness.
|
🥷 Code experts: jjw24 jjw24 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
There was a problem hiding this comment.
Pull request overview
Updates the Windows 11 Light theme’s query TextBox selection highlight to resolve the system accent brush via DynamicResource, allowing the selection color to update automatically when Windows theme/accent resources change at runtime (addresses #4298).
Changes:
- Switched
QueryBoxStyle’sSelectionBrushfrom{StaticResource SystemAccentColorLight1Brush}to{DynamicResource SystemAccentColorLight1Brush}.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughChanged SelectionBrush resource binding in QueryBoxStyle from StaticResource to DynamicResource for SystemAccentColorLight1Brush, enabling runtime resource resolution instead of compile-time binding. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Please re-submit |
Pull request was closed
Changed SelectionBrush in TextBox style from StaticResource to DynamicResource for SystemAccentColorLight1Brush. This enables automatic updates to the selection color when the resource changes at runtime, improving theme responsiveness.
Summary by cubic
Switched the TextBox SelectionBrush in Win11Light.xaml from StaticResource to DynamicResource so the selection color updates when the accent color changes at runtime. Improves theme responsiveness and resolves #4298.
Summary of changes
Written for commit 1d39a44. Summary will update on new commits.