Skip to content

Commit 7a879c9

Browse files
authored
Merge branch 'dev' into delete_clipboard_jsonrpc
2 parents 15e6754 + 4055f07 commit 7a879c9

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
137137
else
138138
{
139139
_viewModel.Show();
140+
// When HideOnStartup is off and UseAnimation is on,
141+
// there was a bug where the clock would not appear at all on the initial launch
142+
// So we need to forcibly trigger animation here to ensure the clock is visible
143+
if (_settings.UseAnimation)
144+
{
145+
WindowAnimation();
146+
}
140147
}
141148

142149
// Initialize context menu & notify icon
@@ -881,10 +888,10 @@ private void WindowAnimation()
881888
FillBehavior = FillBehavior.HoldEnd
882889
};
883890

884-
Storyboard.SetTargetProperty(ClockOpacity, new PropertyPath(OpacityProperty));
885891
Storyboard.SetTarget(ClockOpacity, ClockPanel);
892+
Storyboard.SetTargetProperty(ClockOpacity, new PropertyPath(OpacityProperty));
886893

887-
Storyboard.SetTargetName(thicknessAnimation, "ClockPanel");
894+
Storyboard.SetTarget(thicknessAnimation, ClockPanel);
888895
Storyboard.SetTargetProperty(thicknessAnimation, new PropertyPath(MarginProperty));
889896

890897
Storyboard.SetTarget(IconMotion, SearchIcon);

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,6 @@
28232823
</Trigger>
28242824
<Trigger Property="IsEnabled" Value="false">
28252825
<Setter TargetName="HeaderContentPresenter" Property="Foreground" Value="{DynamicResource TextControlHeaderForegroundDisabled}" />
2826-
<Setter Property="Background" Value="{DynamicResource CustomNumberBoxBGDisabled}" />
28272826
<Setter TargetName="BorderElementInline" Property="Background" Value="{DynamicResource TextControlBackgroundDisabled}" />
28282827
<Setter TargetName="BorderElement" Property="BorderBrush" Value="{DynamicResource TextControlBorderBrushDisabled}" />
28292828
<Setter TargetName="BorderElement" Property="BorderThickness" Value="0 0 0 0" />

Flow.Launcher/Resources/Dark.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<Color x:Key="NumberBoxColor24">#f5f5f5</Color>
108108
<Color x:Key="NumberBoxColor25">#464646</Color>
109109
<Color x:Key="NumberBoxColor26">#ffffff</Color>
110+
<SolidColorBrush x:Key="NumberBoxPlaceHolder" Color="#464646" />
110111
<Color x:Key="HoverStoreGrid">#272727</Color>
111112

112113
<!-- Resources for HotkeyControl -->

0 commit comments

Comments
 (0)