|
1 |
| -<Page x:Class="Flow.Launcher.Resources.Pages.WelcomePage1" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
| - xmlns:local="clr-namespace:Flow.Launcher.Resources.Pages" |
6 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 |
| - Title="WelcomePage1" |
8 |
| - DataContext="{Binding RelativeSource={RelativeSource Self}}" |
9 |
| - mc:Ignorable="d"> |
| 1 | +<Page |
| 2 | + x:Class="Flow.Launcher.Resources.Pages.WelcomePage1" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:local="clr-namespace:Flow.Launcher.Resources.Pages" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + Title="WelcomePage1" |
| 9 | + DataContext="{Binding RelativeSource={RelativeSource Self}}" |
| 10 | + mc:Ignorable="d"> |
10 | 11 | <Page.Resources>
|
11 | 12 | <Style x:Key="StyleImageFadeIn" TargetType="{x:Type Image}">
|
12 |
| - <Setter Property="Opacity" Value="0" /> |
13 | 13 | <Style.Triggers>
|
14 | 14 | <!-- Fades-in the image when it becomes visible -->
|
15 | 15 | <Trigger Property="IsVisible" Value="True">
|
16 | 16 | <Trigger.EnterActions>
|
17 | 17 | <BeginStoryboard>
|
18 | 18 | <BeginStoryboard.Storyboard>
|
19 | 19 | <Storyboard x:Name="FadeIn">
|
20 |
| - <DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:2" /> |
| 20 | + <DoubleAnimation |
| 21 | + Storyboard.TargetProperty="(Canvas.Top)" |
| 22 | + From="105" |
| 23 | + To="95" |
| 24 | + Duration="0:0:1"> |
| 25 | + <DoubleAnimation.EasingFunction> |
| 26 | + <QuadraticEase EasingMode="EaseOut" /> |
| 27 | + </DoubleAnimation.EasingFunction> |
| 28 | + </DoubleAnimation> |
| 29 | + <DoubleAnimation |
| 30 | + Storyboard.TargetProperty="Opacity" |
| 31 | + From="0" |
| 32 | + To="1" |
| 33 | + Duration="0:0:1"> |
| 34 | + <DoubleAnimation.EasingFunction> |
| 35 | + <QuadraticEase EasingMode="EaseOut" /> |
| 36 | + </DoubleAnimation.EasingFunction> |
| 37 | + </DoubleAnimation> |
| 38 | + </Storyboard> |
| 39 | + </BeginStoryboard.Storyboard> |
| 40 | + </BeginStoryboard> |
| 41 | + </Trigger.EnterActions> |
| 42 | + </Trigger> |
| 43 | + </Style.Triggers> |
| 44 | + </Style> |
| 45 | + <Style x:Key="StyleImageFadeInText" TargetType="{x:Type TextBlock}"> |
| 46 | + <Style.Triggers> |
| 47 | + <Trigger Property="IsVisible" Value="True"> |
| 48 | + <Trigger.EnterActions> |
| 49 | + <BeginStoryboard> |
| 50 | + <BeginStoryboard.Storyboard> |
| 51 | + <Storyboard x:Name="FadeIn"> |
| 52 | + <DoubleAnimation |
| 53 | + Storyboard.TargetProperty="(Canvas.Top)" |
| 54 | + From="110" |
| 55 | + To="100" |
| 56 | + Duration="0:0:1"> |
| 57 | + <DoubleAnimation.EasingFunction> |
| 58 | + <QuadraticEase EasingMode="EaseOut" /> |
| 59 | + </DoubleAnimation.EasingFunction> |
| 60 | + </DoubleAnimation> |
| 61 | + <DoubleAnimation |
| 62 | + Storyboard.TargetProperty="Opacity" |
| 63 | + From="0" |
| 64 | + To="1" |
| 65 | + Duration="0:0:1"> |
| 66 | + <DoubleAnimation.EasingFunction> |
| 67 | + <QuadraticEase EasingMode="EaseOut" /> |
| 68 | + </DoubleAnimation.EasingFunction> |
| 69 | + </DoubleAnimation> |
21 | 70 | </Storyboard>
|
22 | 71 | </BeginStoryboard.Storyboard>
|
23 | 72 | </BeginStoryboard>
|
|
44 | 93 | </Border.Background>
|
45 | 94 |
|
46 | 95 | <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
47 |
| - <Image Name="Logo" |
48 |
| - Width="60" |
49 |
| - Height="60" |
50 |
| - Source="../../images/app.png" |
51 |
| - Style="{DynamicResource StyleImageFadeIn}" /> |
52 |
| - <TextBlock Margin="12,0,0,0" |
53 |
| - VerticalAlignment="Center" |
54 |
| - FontSize="30" |
55 |
| - Foreground="White"> |
56 |
| - Flow Launcher |
57 |
| - </TextBlock> |
| 96 | + <Canvas Width="550" Height="250"> |
| 97 | + <Image |
| 98 | + Name="Logo" |
| 99 | + Canvas.Left="140" |
| 100 | + Width="60" |
| 101 | + Height="60" |
| 102 | + Source="../../images/app.png" |
| 103 | + Style="{DynamicResource StyleImageFadeIn}" /> |
| 104 | + <TextBlock |
| 105 | + Canvas.Left="205" |
| 106 | + Margin="12,0,0,0" |
| 107 | + VerticalAlignment="Center" |
| 108 | + FontSize="30" |
| 109 | + Foreground="White" |
| 110 | + Opacity="0" |
| 111 | + Style="{DynamicResource StyleImageFadeInText}"> |
| 112 | + Flow Launcher |
| 113 | + </TextBlock> |
| 114 | + </Canvas> |
58 | 115 | </StackPanel>
|
59 | 116 | </Border>
|
60 | 117 |
|
61 | 118 | <StackPanel Grid.Row="1" Margin="24,20,24,20">
|
62 | 119 | <StackPanel>
|
63 |
| - <TextBlock FontSize="20" FontWeight="SemiBold" Text="{DynamicResource Welcome_Page1_Title}" /> |
64 |
| - <TextBlock Margin="0,10,0,0" |
65 |
| - FontSize="14" |
66 |
| - Text="{DynamicResource Welcome_Page1_Text01}" |
67 |
| - TextWrapping="WrapWithOverflow" /> |
68 |
| - <TextBlock Margin="0,10,0,0" |
69 |
| - FontSize="14" |
70 |
| - Text="{DynamicResource Welcome_Page1_Text02}" |
71 |
| - TextWrapping="WrapWithOverflow" /> |
72 |
| - <TextBlock Margin="0,30,0,0" |
73 |
| - FontSize="14" |
74 |
| - FontWeight="SemiBold" |
75 |
| - Text="{DynamicResource language}" /> |
76 |
| - <ComboBox Width="200" |
77 |
| - Margin="0,10,0,0" |
78 |
| - DisplayMemberPath="Display" |
79 |
| - ItemsSource="{Binding Languages}" |
80 |
| - SelectedValue="{Binding CustomLanguage, Mode=TwoWay}" |
81 |
| - SelectedValuePath="LanguageCode" /> |
| 120 | + <TextBlock |
| 121 | + FontSize="20" |
| 122 | + FontWeight="SemiBold" |
| 123 | + Text="{DynamicResource Welcome_Page1_Title}" /> |
| 124 | + <TextBlock |
| 125 | + Margin="0,10,0,0" |
| 126 | + FontSize="14" |
| 127 | + Text="{DynamicResource Welcome_Page1_Text01}" |
| 128 | + TextWrapping="WrapWithOverflow" /> |
| 129 | + <TextBlock |
| 130 | + Margin="0,10,0,0" |
| 131 | + FontSize="14" |
| 132 | + Text="{DynamicResource Welcome_Page1_Text02}" |
| 133 | + TextWrapping="WrapWithOverflow" /> |
| 134 | + <TextBlock |
| 135 | + Margin="0,30,0,0" |
| 136 | + FontSize="14" |
| 137 | + FontWeight="SemiBold" |
| 138 | + Text="{DynamicResource language}" /> |
| 139 | + <ComboBox |
| 140 | + Width="200" |
| 141 | + Margin="0,10,0,0" |
| 142 | + DisplayMemberPath="Display" |
| 143 | + ItemsSource="{Binding Languages}" |
| 144 | + SelectedValue="{Binding CustomLanguage, Mode=TwoWay}" |
| 145 | + SelectedValuePath="LanguageCode" /> |
82 | 146 | </StackPanel>
|
83 | 147 |
|
84 | 148 | </StackPanel>
|
|
0 commit comments