-
-
Notifications
You must be signed in to change notification settings - Fork 448
Fix system ColorScheme update handling #3543
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 system ColorScheme update handling #3543
Conversation
This comment has been minimized.
This comment has been minimized.
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 Walkthrough""" WalkthroughThe change introduces an event handler in the main window to listen for application theme changes. When the theme changes, the UI frame is refreshed asynchronously by invoking a specific method. This ensures the interface responds dynamically to theme updates without altering other logic. Changes
Sequence Diagram(s)sequenceDiagram
participant ThemeManager
participant MainWindow
participant Theme
ThemeManager->>MainWindow: ActualApplicationThemeChanged event
MainWindow->>MainWindow: ThemeManager_ActualApplicationThemeChanged()
MainWindow->>Theme: RefreshFrameAsync()
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Flow.Launcher/MainWindow.xaml.cs
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: gitStream.cm
- GitHub Check: gitStream.cm
- GitHub Check: gitStream.cm
- GitHub Check: gitStream.cm
- GitHub Check: build
🔇 Additional comments (1)
Flow.Launcher/MainWindow.xaml.cs (1)
92-92
: Subscription to theme change event looks good.The event subscription to
ActualApplicationThemeChanged
will allow the app to detect when the system color scheme changes, addressing the issue described in the PR.
This comment has been minimized.
This comment has been minimized.
…esounds/Flow.Launcher into 250514-FixColorSchemeChanging
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
Fix system ColorScheme update handling
Summary
Steps to Reproduce
win11light
).Cause
RefreshFrame
process.RefreshFrame
, the background color update was no longer triggered properly.Solution
ModernWpf
already listens for system ColorScheme changes, we subscribe to its event.RefreshFrame
once to apply the correct background color.