Use DynamicResource for TextBox SelectionBrush#4321
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 TextBox styling so the selection highlight brush tracks system accent resource changes at runtime, addressing the crash reported when Windows theme resources are refreshed (issue #4298).
Changes:
- Switched
TextBox.SelectionBrushin the Win11Light theme from{StaticResource ...}to{DynamicResource ...}so it re-resolves when system resources change.
💡 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 info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughChanges the QueryBoxStyle SelectionBrush in the Win11Light theme from a StaticResource reference to a DynamicResource reference, enabling runtime resolution of system theme resources instead of static initialization. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 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 |
Changed SelectionBrush in TextBox style from StaticResource to DynamicResource for SystemAccentColorLight1Brush.
Summary by cubic
Switched the TextBox SelectionBrush in Win11Light.xaml from StaticResource to DynamicResource so the selection color updates when SystemAccentColor changes at runtime. Keeps theme responsive and continues to address issue #4298; merging dev introduces no additional behavior changes.
Written for commit 7eed3aa. Summary will update on new commits.