Repository navigation
Expand file tree
/
Copy pathUpdateWindow.xaml
More file actions
74 lines (70 loc) · 4.87 KB
/
Copy pathUpdateWindow.xaml
File metadata and controls
74 lines (70 loc) · 4.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<Window x:Class="FastbootEnhance.UpdateWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:props="clr-namespace:FastbootEnhance.Properties"
WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True" Background="Transparent"
SizeToContent="Height" Width="636" ShowInTaskbar="False" WindowStartupLocation="CenterOwner"
Foreground="{StaticResource Text}" FontFamily="{StaticResource UiFont}" FontSize="13" UseLayoutRounding="True">
<!-- The update dialog: what is new, then download (checked against its SHA-256), later, or skip. -->
<Border Margin="18" Background="{StaticResource Surface}" BorderBrush="{StaticResource Line}"
BorderThickness="1" CornerRadius="12">
<Border.Effect>
<DropShadowEffect BlurRadius="26" ShadowDepth="6" Opacity="0.55" Color="#000000"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border x:Name="strip" Height="3" VerticalAlignment="Top" CornerRadius="11,11,0,0" Background="{StaticResource Accent}"/>
<DockPanel x:Name="header" Margin="22,20,22,0" Background="Transparent">
<Border x:Name="badge" DockPanel.Dock="Left" Width="34" Height="34" CornerRadius="10" BorderThickness="1"
Margin="0,0,14,0" VerticalAlignment="Top"
Background="{StaticResource AccentSoft}" BorderBrush="{StaticResource AccentLine}">
<Path FlowDirection="LeftToRight" x:Name="glyph" Width="18" Height="18" Stretch="Uniform" StrokeThickness="2"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" Stroke="{StaticResource Accent}"/>
</Border>
<StackPanel VerticalAlignment="Center">
<TextBlock x:Name="heading" Style="{StaticResource CardTitle}" FontSize="15" TextWrapping="Wrap"/>
<TextBlock x:Name="subheading" Foreground="{StaticResource Dim}" FontSize="12" Margin="0,2,0,0" TextWrapping="Wrap"/>
</StackPanel>
</DockPanel>
<StackPanel Grid.Row="1" Margin="70,12,22,0">
<StackPanel x:Name="notes_panel">
<TextBlock Style="{StaticResource SectionLabel}" Margin="0,0,0,6" Text="{x:Static props:Resources.update_whats_new}"/>
<Border Background="{StaticResource Well}" BorderBrush="{StaticResource Line}" BorderThickness="1"
CornerRadius="10" Padding="14,10">
<ScrollViewer MaxHeight="260" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<ItemsControl x:Name="notes">
<ItemsControl.ItemTemplate>
<DataTemplate>
<DockPanel Margin="0,3">
<TextBlock DockPanel.Dock="Left" Text="•" Foreground="{StaticResource Accent}"
FontWeight="Bold" Margin="0,0,8,0"/>
<TextBlock Text="{Binding}" TextWrapping="Wrap" LineHeight="19"/>
</DockPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Border>
</StackPanel>
<ProgressBar x:Name="progress" Height="6" Margin="0,4,0,0" Visibility="Collapsed" Maximum="100"/>
<TextBlock x:Name="message" TextWrapping="Wrap" Foreground="{StaticResource Dim}" FontSize="12"
LineHeight="18" Margin="0,10,0,0"/>
</StackPanel>
<Border Grid.Row="2" Margin="0,18,0,0" Padding="22,14" Background="{StaticResource Bg}"
BorderBrush="{StaticResource Line}" BorderThickness="0,1,0,0" CornerRadius="0,0,11,11">
<DockPanel>
<Button x:Name="skip" DockPanel.Dock="Left" Style="{StaticResource GhostButton}"
Content="{x:Static props:Resources.update_skip}" Foreground="{StaticResource Faint}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="secondary" MinWidth="96" Margin="0,0,10,0"/>
<Button x:Name="primary" MinWidth="120" Style="{StaticResource AccentButton}" IsDefault="True"/>
</StackPanel>
</DockPanel>
</Border>
</Grid>
</Border>
</Window>