153 lines
7.9 KiB
XML
153 lines
7.9 KiB
XML
<Application x:Class="Server_Dashboard.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:Server_Dashboard"
|
|
StartupUri="LoginWindow.xaml">
|
|
<Application.Resources>
|
|
|
|
<RadialGradientBrush x:Key="LoginBackground" GradientOrigin="0.5, 0.5" Center="0.5, 0.5">
|
|
<RadialGradientBrush.GradientStops>
|
|
<GradientStop Color="#2A2D30" Offset="1"/>
|
|
<GradientStop Color="#444C4E" Offset="0"/>
|
|
</RadialGradientBrush.GradientStops>
|
|
</RadialGradientBrush>
|
|
|
|
<BooleanToVisibilityConverter x:Key="UserNameVisibillity"/>
|
|
<BooleanToVisibilityConverter x:Key="PasswordVisibillity"/>
|
|
|
|
<SolidColorBrush x:Key="Background" Color="#141424"/>
|
|
<!--A700 Teal-->
|
|
<SolidColorBrush x:Key="Green" Color="#00BFA5"/>
|
|
<!--600 Light Blue-->
|
|
<SolidColorBrush x:Key="Blue" Color="#039BE5"/>
|
|
<!--800 Light Blue-->
|
|
<SolidColorBrush x:Key="PressedBlue" Color="#0277BD"/>
|
|
<!--500 Yellow-->
|
|
<SolidColorBrush x:Key="Yellow" Color="#FFEB3B"/>
|
|
<!--700 Yellow-->
|
|
<SolidColorBrush x:Key="PressedYellow" Color="#FBC02D"/>
|
|
<!--800 Red-->
|
|
<SolidColorBrush x:Key="ErrorRed" Color="#c62828"/>
|
|
|
|
<Style x:Key="LoginViewBorder" TargetType="{x:Type Border}">
|
|
<Setter Property="BorderBrush" Value="#25AEA6"/>
|
|
<Setter Property="CornerRadius" Value="4"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="Background" Value="{StaticResource LoginBackground}"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LoginFormsBorder" TargetType="{x:Type Border}">
|
|
<Setter Property="BorderBrush" Value="#1B1C20"/>
|
|
<Setter Property="CornerRadius" Value="4"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Width" Value="350"/>
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Background" Value="#1B1C20"/>
|
|
</Style>
|
|
|
|
<Style x:Name="HintText" x:Key="LoginFormTooltip" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Foreground" Value="#40AAAAAA"/>
|
|
<Setter Property="FontFamily" Value="Arial"/>
|
|
<Setter Property="FontSize" Value="20"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LoginFormInput" TargetType="{x:Type TextBox}">
|
|
<Setter Property="CaretBrush" Value="#BBBBBB"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="FontFamily" Value="Arial"/>
|
|
<Setter Property="FontSize" Value="20"/>
|
|
<Setter Property="Foreground" Value="#878787"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="Width" Value="290"/>
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LoginFormPassword" TargetType="{x:Type PasswordBox}">
|
|
<Setter Property="PasswordChar" Value="*"/>
|
|
<Setter Property="CaretBrush" Value="#BBBBBB"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="FontFamily" Value="Arial"/>
|
|
<Setter Property="FontSize" Value="20"/>
|
|
<Setter Property="Foreground" Value="#878787"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="Width" Value="290"/>
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Style>
|
|
|
|
<Style x:Key="LoginFormButton" TargetType="{x:Type Button}">
|
|
<Setter Property="Width" Value="350"/>
|
|
<Setter Property="Height" Value="60"/>
|
|
<Setter Property="Background" Value="#2A2D30"/>
|
|
<Setter Property="BorderBrush" Value="#25AEA6"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="Foreground" Value="#25AEA6"/>
|
|
<Setter Property="FontSize" Value="25"/>
|
|
<Setter Property="FontFamily" Value="Arial"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="Border" CornerRadius="4" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
|
<TextBlock TextAlignment="Center" Padding="0" TextWrapping="Wrap" Text="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="BorderBrush" Value="#35bEb6"/>
|
|
<Setter Property="Foreground" Value="#35bEb6"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="#25AEA6"/>
|
|
<Setter Property="Foreground" Value="#2A2D30"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="LoginGreeter" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Foreground" Value="#878787"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="FontSize" Value="40"/>
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style x:Key="CloseButton" TargetType="{x:Type Button}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Foreground" Value="#BBBBBB"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontSize" Value="20"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="Border" CornerRadius="3" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
|
<TextBlock TextAlignment="Center" Padding="0" TextWrapping="Wrap" Text="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="Red"/>
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ErrorMessage" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Foreground" Value="{StaticResource ErrorRed}"/>
|
|
</Style>
|
|
</Application.Resources>
|
|
</Application>
|