Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
342bf30
- Add Slide Up Animation
onesounds Nov 11, 2021
a4e941b
Change Property toggle base to Var from visibility
onesounds Nov 11, 2021
5a969b2
Add InitPosition in WindowAnimator
onesounds Nov 12, 2021
f1222f9
Fix Positioning when turn on remember last launch position
onesounds Nov 12, 2021
6d8ee64
- Change trigger animation Timing
onesounds Nov 12, 2021
037c343
- Change InitializePosition for load setting
onesounds Nov 13, 2021
4a86962
- Fix RememberLastPosition when Re-Excute
onesounds Nov 13, 2021
6744e21
Remove some unused code
taooceros Nov 13, 2021
ca2d696
Remove redundant animation and potential position change
taooceros Nov 13, 2021
62eb1b6
- Add Sound
onesounds Nov 13, 2021
15266f2
- Add time for hide when open setting (using context menu)
onesounds Nov 14, 2021
42f1b57
- Change Setting Window Size to responsive
onesounds Nov 14, 2021
838d6c5
Remove Left Positioning Code in animation
onesounds Nov 14, 2021
e04944f
Merge Dev
onesounds Nov 14, 2021
b17f12b
change wav file to resource
onesounds Nov 14, 2021
37858a4
Change Sound FIle
onesounds Nov 14, 2021
5a430bf
Change Wav to output
onesounds Nov 14, 2021
abe4eec
fix Wav output setting
onesounds Nov 14, 2021
f8cfa7c
Remove Resize Settting window code (It made weired blink when open se…
onesounds Nov 14, 2021
a2600af
- Add Show() function and seperate toggleflow()
onesounds Nov 14, 2021
add99c4
- Change MainwindowVisibility to using show()
onesounds Nov 14, 2021
e8e1393
Change UseSound to Default.
onesounds Nov 15, 2021
7107386
- Fix First Launch Position to Center
onesounds Nov 16, 2021
0cb3d05
Merge branch 'dev' into RealFinalAnimation
onesounds Nov 16, 2021
a301d8e
Adjust Position Update Timing
onesounds Nov 18, 2021
eaf0649
Add Delay to Opacity when Main Window Deactive
onesounds Nov 19, 2021
4525043
Change Icon uniform property from uniformtofill (Fix wide icon cut)
onesounds Nov 19, 2021
e500b35
Apply suggestions from code review
onesounds Nov 19, 2021
7a0ef5c
Update Flow.Launcher/Languages/en.xaml
onesounds Nov 19, 2021
8f1a9bf
Remove Save in OnDeactivated
onesounds Nov 19, 2021
23ba5e9
Merge branch 'dev' into RealFinalAnimation
jjw24 Nov 20, 2021
3c78802
- move sound play code to animator from show
onesounds Nov 20, 2021
89677ff
Merge branch 'RealFinalAnimation' of https://github.com/onesounds/Flo…
onesounds Nov 20, 2021
3eeac91
Add Animation in Glass Icon
onesounds Nov 20, 2021
e30af37
Adjust Delay Duration to fix blink
onesounds Nov 22, 2021
e282fc5
- Remove visible/collapsed code (only using opacity)
onesounds Nov 22, 2021
4df1e41
Revert "- Remove visible/collapsed code (only using opacity)"
onesounds Nov 22, 2021
df4f94f
Adjust Delay for ondeactivated
onesounds Nov 22, 2021
7b4867d
prevent re-triggering on deactivated
jjw24 Nov 23, 2021
49b3a02
Adjust Animation Time
onesounds Nov 26, 2021
c94a04b
refinements to delay and show hide toggle
jjw24 Nov 27, 2021
091b4af
switch to use main window's Show method
jjw24 Nov 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Flow.Launcher/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
</TextBox>
<Canvas Style="{DynamicResource SearchIconPosition}">
<Path
Name="SearchIcon"
Margin="0"
Data="{DynamicResource SearchIconImg}"
Stretch="Fill"
Expand Down
21 changes: 17 additions & 4 deletions Flow.Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,29 +267,42 @@ public void WindowAnimator()
_animating = true;
UpdatePosition();
Storyboard sb = new Storyboard();
Storyboard iconsb = new Storyboard();
CircleEase easing = new CircleEase(); // or whatever easing class you want
easing.EasingMode = EasingMode.EaseInOut;
var da = new DoubleAnimation
{
From = 0,
To = 1,
Duration = TimeSpan.FromSeconds(0.18),
Duration = TimeSpan.FromSeconds(0.2),
FillBehavior = FillBehavior.Stop
};

var da2 = new DoubleAnimation
{
From = Top + 8,
From = Top + 10,
To = Top,
Duration = TimeSpan.FromSeconds(0.18),
Duration = TimeSpan.FromSeconds(0.2),
FillBehavior = FillBehavior.Stop
};
var da3 = new DoubleAnimation
{
From = 12,
To = 0,
EasingFunction = easing,
Duration = TimeSpan.FromSeconds(0.36),
FillBehavior = FillBehavior.Stop
};
Storyboard.SetTarget(da, this);
Storyboard.SetTargetProperty(da, new PropertyPath(Window.OpacityProperty));
Storyboard.SetTargetProperty(da2, new PropertyPath(Window.TopProperty));
Storyboard.SetTargetProperty(da3, new PropertyPath(TopProperty));
sb.Children.Add(da);
sb.Children.Add(da2);
iconsb.Children.Add(da3);
sb.Completed += (_, _) => _animating = false;
_settings.WindowLeft = Left;
_settings.WindowTop = Top;
iconsb.Begin(SearchIcon);
Copy link
Member

@jjw24 jjw24 Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change intended for this pr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, for Icon animation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search icon seems to just jump up a little as if to reposition itself to the right height. Is this the same case for you?

sb.Begin(FlowMainWindow);
}
if (_settings.UseSound)
Expand Down