mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-01-30 01:03:02 +08:00
Improve CLI performance
This commit is contained in:
@@ -210,14 +210,14 @@ public partial class App : Application
|
||||
}
|
||||
};
|
||||
|
||||
base.OnStartup(e);
|
||||
|
||||
// Set initial theme based on system settings
|
||||
ThemeManager.Apply(OSThemeHelper.AppsUseDarkTheme() ? ApplicationTheme.Dark : ApplicationTheme.Light);
|
||||
SystemEvents.UserPreferenceChanged += (_, _) =>
|
||||
ThemeManager.Apply(OSThemeHelper.AppsUseDarkTheme() ? ApplicationTheme.Dark : ApplicationTheme.Light);
|
||||
UxTheme.ApplyPreferredAppMode();
|
||||
|
||||
base.OnStartup(e);
|
||||
|
||||
// Initialize MessageBox patching
|
||||
bool modernMessageBox = SettingHelper.Get("ModernMessageBox", true, "QuickLook");
|
||||
if (modernMessageBox) MessageBoxPatcher.Initialize();
|
||||
|
||||
Reference in New Issue
Block a user