diff --git a/BackupEssentials/App.xaml b/BackupEssentials/App.xaml index 079d520..354005a 100644 --- a/BackupEssentials/App.xaml +++ b/BackupEssentials/App.xaml @@ -1,10 +1,11 @@ <Application - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:sys="clr-namespace:System;assembly=mscorlib" - xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="BackupEssentials.App" - Startup="StartApp" - DispatcherUnhandledException="HandleException"> + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:sys="clr-namespace:System;assembly=mscorlib" + xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" + x:Class="BackupEssentials.App" + Startup="StartApp" + DispatcherUnhandledException="HandleException"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> @@ -13,6 +14,7 @@ <sys:Double x:Key="PageWidth">796</sys:Double> <sys:Double x:Key="PageHeight">482</sys:Double> + <SolidColorBrush x:Key="PageBackground">#FF2E2E2E</SolidColorBrush> <ControlTemplate x:Key="ButtonStyleDefault" TargetType="{x:Type ButtonBase}"> <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> @@ -98,8 +100,8 @@ <GradientStop Color="#FF3E3E3E" Offset="1"/> </LinearGradientBrush> </Border.Background> - <Label x:Name="label" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" TextOptions.TextRenderingMode="ClearType"> - <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> + <Label x:Name="label" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" TextOptions.TextRenderingMode="ClearType"> + <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="0" RecognizesAccessKey="True" SnapsToDevicePixels="True"/> </Label> </Border> </Grid> @@ -131,6 +133,46 @@ </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> + <LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0"> + <GradientStop Color="#ABADB3" Offset="0.05"/> + <GradientStop Color="#E2E3EA" Offset="0.07"/> + <GradientStop Color="#E3E9EF" Offset="1"/> + </LinearGradientBrush> + + <Style x:Key="TextBoxStyleDefault" BasedOn="{x:Null}" TargetType="{x:Type TextBox}"> + <Setter Property="Foreground" Value="#FFC5C5C5"/> + <Setter Property="Background" Value="{x:Null}"/> + <Setter Property="BorderBrush" Value="{x:Null}"/> + <Setter Property="CaretBrush" Value="#FFEEEEEE"/> + <Setter Property="BorderThickness" Value="2"/> + <Setter Property="FontSize" Value="16"/> + <Setter Property="VerticalContentAlignment" Value="Center"/> + <Setter Property="Padding" Value="2"/> + <Setter Property="AllowDrop" Value="true"/> + <Setter Property="FocusVisualStyle" Value="{x:Null}"/> + <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/> + <Setter Property="Stylus.IsFlicksEnabled" Value="False"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type TextBox}"> + <Themes:ListBoxChrome x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" SnapsToDevicePixels="true" Background="#FF383838"> + <Themes:ListBoxChrome.BorderBrush> + <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> + <GradientStop Color="#FF292929" Offset="0"/> + <GradientStop Color="#FF212121" Offset="1"/> + </LinearGradientBrush> + </Themes:ListBoxChrome.BorderBrush> + <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> + </Themes:ListBoxChrome> + <ControlTemplate.Triggers> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="Foreground" Value="#FF959595"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> </ResourceDictionary> </Application.Resources> </Application>