From 56357839734d5262e2fbb65f8fcf2be9bd225ec8 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 28 Feb 2026 21:23:20 +0800 Subject: [PATCH] Limit theme refresh to when color scheme is "System" Previously, the theme was refreshed on every theme change event. Now, `_theme.RefreshFrameAsync()` is only called if the color scheme setting is set to "System", preventing unnecessary refreshes in other scenarios. --- Flow.Launcher/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 06b2dda9e..113f1f583 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -109,7 +109,10 @@ namespace Flow.Launcher private void ViewModel_ActualApplicationThemeChanged(object sender, ActualApplicationThemeChangedEventArgs args) { - _ = _theme.RefreshFrameAsync(); + if (_settings.ColorScheme == Constant.System) + { + _ = _theme.RefreshFrameAsync(); + } } private void OnSourceInitialized(object sender, EventArgs e)