| 1 | <?xml version="1.0" encoding="utf-8" ?> |
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
| 3 | |
| 4 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 5 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 6 | xmlns:System="clr-namespace:System;assembly=mscorlib" |
| 7 | xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
| 8 | xmlns:shell="clr-namespace:System.Windows.Shell;assembly=PresentationFramework" |
| 9 | xmlns:wixba="clr-namespace:WixToolset.WixBA"> |
| 10 | |
| 11 | <!-- Converters --> |
| 12 | <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
| 13 | |
| 14 | <!-- Fonts --> |
| 15 | <FontFamily x:Key="FontFamily">Segoe UI, Arial</FontFamily> |
| 16 | <System:Double x:Key="FontSizeBranding">45</System:Double> |
| 17 | <System:Double x:Key="FontSizeMedium">12</System:Double> |
| 18 | <System:Double x:Key="FontSizeButton">14</System:Double> |
| 19 | |
| 20 | <!-- Images --> |
| 21 | <BitmapImage x:Key="LogoOverLightBackground" UriSource="pack://application:,,,/WixToolset.WixBA;component/resources/logo-white-hollow.png" /> |
| 22 | <BitmapImage x:Key="LogoOverDarkBackground" UriSource="pack://application:,,,/WixToolset.WixBA;component/resources/logo-black-hollow.png" /> |
| 23 | |
| 24 | <!-- Colors --> |
| 25 | <Color x:Key="ProgressIndicatorColor">#FF1EF1E8</Color> |
| 26 | |
| 27 | <!-- Brushs --> |
| 28 | <SolidColorBrush x:Key="ProgressIndicatorBrush" Color="{DynamicResource ProgressIndicatorColor}" /> |
| 29 | |
| 30 | <LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" StartPoint="0,0" EndPoint="1,0"> |
| 31 | <LinearGradientBrush.GradientStops> |
| 32 | <GradientStopCollection> |
| 33 | <GradientStop Offset="0" Color="#000000FF" /> |
| 34 | <GradientStop Offset="0.5" Color="#600000FF" /> |
| 35 | <GradientStop Offset="0.54" Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}" /> |
| 36 | <GradientStop Offset="0.56" Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}" /> |
| 37 | <GradientStop Offset="0.6" Color="#600000FF" /> |
| 38 | <GradientStop Offset="1" Color="#000000FF" /> |
| 39 | </GradientStopCollection> |
| 40 | </LinearGradientBrush.GradientStops> |
| 41 | </LinearGradientBrush> |
| 42 | |
| 43 | <!-- Control Templates --> |
| 44 | <ControlTemplate x:Key="HyperlinkedButtonTemplateKey" TargetType="{x:Type Button}"> |
| 45 | <ContentPresenter Margin="{TemplateBinding Control.Padding}" |
| 46 | HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" |
| 47 | VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" |
| 48 | Content="{TemplateBinding ContentControl.Content}" |
| 49 | ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" |
| 50 | SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" /> |
| 51 | </ControlTemplate> |
| 52 | |
| 53 | <ControlTemplate x:Key="ProgressBarTemplateKey" TargetType="{x:Type ProgressBar}"> |
| 54 | <Border Name="TemplateRoot" |
| 55 | Margin="0,5" |
| 56 | BorderBrush="{TemplateBinding BorderBrush}" |
| 57 | BorderThickness="{TemplateBinding BorderThickness}" |
| 58 | CornerRadius="3"> |
| 59 | <Grid ClipToBounds="True" SnapsToDevicePixels="true"> |
| 60 | <Rectangle Fill="{TemplateBinding Background}" /> |
| 61 | <Rectangle Name="PART_Track" ClipToBounds="True" /> |
| 62 | <Decorator x:Name="PART_Indicator" HorizontalAlignment="Left"> |
| 63 | <Grid Name="Foreground"> |
| 64 | <Rectangle x:Name="Indicator" Fill="{TemplateBinding Foreground}" /> |
| 65 | <Grid x:Name="Animation"> |
| 66 | <Rectangle x:Name="PART_GlowRect" |
| 67 | Width="80" |
| 68 | Margin="-100,0,0,0" |
| 69 | HorizontalAlignment="Left" |
| 70 | Fill="{StaticResource ProgressBarIndicatorAnimatedFill}" /> |
| 71 | </Grid> |
| 72 | </Grid> |
| 73 | </Decorator> |
| 74 | </Grid> |
| 75 | </Border> |
| 76 | </ControlTemplate> |
| 77 | |
| 78 | <!-- Styles --> |
| 79 | <Style x:Key="ActionBtnStkPnlStyle" TargetType="StackPanel"> |
| 80 | <Setter Property="Margin" Value="0,2,0,0" /> |
| 81 | <Setter Property="HorizontalAlignment" Value="Center" /> |
| 82 | </Style> |
| 83 | |
| 84 | <Style x:Key="FinalActionsStkPnlStyle" TargetType="StackPanel"> |
| 85 | <Setter Property="Margin" Value="80,2,0,0" /> |
| 86 | </Style> |
| 87 | |
| 88 | <Style x:Key="BrandStkPnlStyle" TargetType="StackPanel"> |
| 89 | <Setter Property="Margin" Value="0,0,20,0" /> |
| 90 | <Setter Property="VerticalAlignment" Value="Top" /> |
| 91 | <Setter Property="HorizontalAlignment" Value="Right" /> |
| 92 | <Setter Property="Width" Value="100" /> |
| 93 | <Setter Property="Width" Value="100" /> |
| 94 | </Style> |
| 95 | |
| 96 | <Style x:Key="CommonTextBlkStyle" TargetType="TextBlock"> |
| 97 | <Setter Property="VerticalAlignment" Value="Center" /> |
| 98 | <Setter Property="HorizontalAlignment" Value="Center" /> |
| 99 | <Setter Property="FontWeight" Value="Bold" /> |
| 100 | <Setter Property="TextAlignment" Value="Center" /> |
| 101 | <Setter Property="TextWrapping" Value="WrapWithOverflow" /> |
| 102 | <Setter Property="FontFamily" Value="{DynamicResource FontFamily}" /> |
| 103 | </Style> |
| 104 | |
| 105 | <Style x:Key="TitleTextBlkStyle" |
| 106 | BasedOn="{StaticResource CommonTextBlkStyle}" |
| 107 | TargetType="TextBlock"> |
| 108 | <Setter Property="VerticalAlignment" Value="Top" /> |
| 109 | <Setter Property="HorizontalAlignment" Value="Left" /> |
| 110 | <Setter Property="FontSize" Value="{DynamicResource ResourceKey=FontSizeBranding}" /> |
| 111 | <Setter Property="FontWeight" Value="ExtraBold" /> |
| 112 | <Setter Property="Margin" Value="0,5,0,0" /> |
| 113 | </Style> |
| 114 | |
| 115 | |
| 116 | <Style x:Key="LabelTextBlkStyle" |
| 117 | BasedOn="{StaticResource CommonTextBlkStyle}" |
| 118 | TargetType="TextBlock"> |
| 119 | <Setter Property="HorizontalAlignment" Value="Left" /> |
| 120 | <Setter Property="FontSize" Value="{DynamicResource FontSizeButton}" /> |
| 121 | <Setter Property="FontWeight" Value="Bold" /> |
| 122 | <Setter Property="TextAlignment" Value="Left" /> |
| 123 | <Setter Property="Margin" Value="0,2,3,0" /> |
| 124 | </Style> |
| 125 | |
| 126 | <Style x:Key="DataTextBlkStyle" |
| 127 | BasedOn="{StaticResource CommonTextBlkStyle}" |
| 128 | TargetType="TextBlock"> |
| 129 | <Setter Property="HorizontalAlignment" Value="Left" /> |
| 130 | <Setter Property="FontSize" Value="{DynamicResource FontSizeMedium}" /> |
| 131 | <Setter Property="TextAlignment" Value="Left" /> |
| 132 | <Setter Property="Margin" Value="2,2,3,0" /> |
| 133 | </Style> |
| 134 | |
| 135 | <Style x:Key="StatusTextStyle" |
| 136 | BasedOn="{StaticResource CommonTextBlkStyle}" |
| 137 | TargetType="TextBlock"> |
| 138 | <Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.MessageFontFamilyKey}}" /> |
| 139 | <Setter Property="FontSize" Value="{DynamicResource FontSizeMedium}" /> |
| 140 | <Setter Property="Margin" Value="8" /> |
| 141 | <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" /> |
| 142 | <Setter Property="VerticalAlignment" Value="Top" /> |
| 143 | <Setter Property="HorizontalAlignment" Value="Left" /> |
| 144 | </Style> |
| 145 | |
| 146 | <Style x:Key="ActionButtonStyle" TargetType="Button"> |
| 147 | <Setter Property="MinHeight" Value="30" /> |
| 148 | <Setter Property="MinWidth" Value="100" /> |
| 149 | <Setter Property="Margin" Value="5,0,0,0" /> |
| 150 | <Setter Property="VerticalAlignment" Value="Center" /> |
| 151 | <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 152 | <Setter Property="HorizontalAlignment" Value="Center" /> |
| 153 | <Setter Property="HorizontalContentAlignment" Value="Center" /> |
| 154 | <Setter Property="FontFamily" Value="{DynamicResource FontFamily}" /> |
| 155 | </Style> |
| 156 | |
| 157 | <Style x:Key="FinalActionButtonStyle" |
| 158 | BasedOn="{StaticResource ActionButtonStyle}" |
| 159 | TargetType="Button"> |
| 160 | <Setter Property="Margin" Value="40,0,0,0" /> |
| 161 | </Style> |
| 162 | |
| 163 | <Style x:Key="HyperlinkedButtonStyle" TargetType="Button"> |
| 164 | <Setter Property="Margin" Value="0,2,0,0" /> |
| 165 | <Setter Property="Template" Value="{StaticResource HyperlinkedButtonTemplateKey}" /> |
| 166 | <Setter Property="IsHitTestVisible" Value="True" /> |
| 167 | </Style> |
| 168 | |
| 169 | <Style x:Key="LogoStyle" TargetType="Image"> |
| 170 | <Setter Property="Height" Value="65" /> |
| 171 | <Setter Property="Width" Value="102" /> |
| 172 | <Setter Property="VerticalAlignment" Value="Top" /> |
| 173 | <Setter Property="IsHitTestVisible" Value="False" /> |
| 174 | <Setter Property="Source" Value="{DynamicResource LogoOverLightBackground}" /> |
| 175 | <Style.Triggers> |
| 176 | <DataTrigger Binding="{Binding Path=IsLightBackground, Source={x:Static wixba:WindowProperties.Instance}}" Value="false"> |
| 177 | <Setter Property="Source" Value="{DynamicResource LogoOverDarkBackground}" /> |
| 178 | </DataTrigger> |
| 179 | </Style.Triggers> |
| 180 | </Style> |
| 181 | |
| 182 | <Style x:Key="UpdateMarqueeStyle" TargetType="ProgressBar"> |
| 183 | <Setter Property="Foreground" Value="{DynamicResource ProgressIndicatorBrush}" /> |
| 184 | <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" /> |
| 185 | <Setter Property="BorderThickness" Value="1" /> |
| 186 | </Style> |
| 187 | |
| 188 | <Style x:Key="ActionProgressStyle" TargetType="ProgressBar"> |
| 189 | <Setter Property="Foreground" Value="{DynamicResource ProgressIndicatorBrush}" /> |
| 190 | <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" /> |
| 191 | <Setter Property="BorderThickness" Value="1" /> |
| 192 | <Setter Property="Template" Value="{StaticResource ProgressBarTemplateKey}" /> |
| 193 | </Style> |
| 194 | </ResourceDictionary> |