mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Revert Startup Blinking
This commit is contained in:
parent
46cdb2a273
commit
01d081d740
3 changed files with 11 additions and 9 deletions
|
|
@ -154,7 +154,8 @@ namespace Flow.Launcher.Core.Resource
|
|||
//Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_BORDER_COLOR, 0x00FF0000);
|
||||
//Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE, 3);
|
||||
|
||||
// The timing of adding the shadow effect should vary depending on whether the theme is transparent. if (BlurEnabled)
|
||||
// The timing of adding the shadow effect should vary depending on whether the theme is transparent.
|
||||
if (BlurEnabled)
|
||||
{
|
||||
AutoDropShadow();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -819,18 +819,19 @@ namespace Flow.Launcher
|
|||
if (_settings.HideOnStartup)
|
||||
{
|
||||
// 📌 최초 실행 시 창이 깜빡이는 문제 방지 (완전히 숨긴 상태로 시작)
|
||||
System.Windows.Application.Current.MainWindow.Visibility = Visibility.Hidden;
|
||||
//System.Windows.Application.Current.MainWindow.Visibility = Visibility.Hidden;
|
||||
|
||||
Dispatcher.BeginInvoke((Action)(() =>
|
||||
{
|
||||
_viewModel.Hide();
|
||||
System.Windows.Application.Current.MainWindow.Visibility = Visibility.Collapsed;
|
||||
}), DispatcherPriority.Background);
|
||||
//Dispatcher.BeginInvoke((Action)(() =>
|
||||
//{
|
||||
// _viewModel.Hide();
|
||||
// System.Windows.Application.Current.MainWindow.Visibility = Visibility.Collapsed;
|
||||
//}), DispatcherPriority.Background);
|
||||
_viewModel.Hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
// 📌 최초 실행 시 그림자 효과를 미리 적용하여 Show() 할 때 렌더링이 느려지지 않도록 함
|
||||
ThemeManager.Instance.SetBlurForWindow();
|
||||
//ThemeManager.Instance.SetBlurForWindow();
|
||||
//ThemeManager.Instance.AutoDropShadow();
|
||||
_viewModel.Show();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
|
||||
<system:String x:Key="BlurMode">Light</system:String>
|
||||
<system:String x:Key="CornerType">RoundSmall</system:String>
|
||||
<Color x:Key="lightBG">#4BFEC7D7</Color>
|
||||
<Color x:Key="lightBG">#B6C8C7FE</Color>
|
||||
<Color x:Key="darkBG">#53FEC7D7</Color>
|
||||
<Thickness x:Key="ResultMargin">0 0 0 0</Thickness>
|
||||
<Style
|
||||
|
|
|
|||
Loading…
Reference in a new issue