Views/DashboardShell.xaml
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <SolidColorBrush x:Key="DashboardBackgroundBrush" Color="#1A1A2E"/> <SolidColorBrush x:Key="DashboardSurfaceBrush" Color="#16213E"/> <SolidColorBrush x:Key="DashboardBorderBrush" Color="#0F3460"/> <SolidColorBrush x:Key="DashboardForegroundBrush" Color="#E0E0E0"/> <SolidColorBrush x:Key="DashboardMutedForegroundBrush" Color="#AAAAAA"/> <SolidColorBrush x:Key="DashboardAccentBrush" Color="#00CC66"/> <Style x:Key="DashboardDataGridHeaderStyle" TargetType="DataGridColumnHeader"> <Setter Property="Background" Value="{DynamicResource DashboardSurfaceBrush}"/> <Setter Property="Foreground" Value="{DynamicResource DashboardForegroundBrush}"/> <Setter Property="BorderBrush" Value="{DynamicResource DashboardBorderBrush}"/> <Setter Property="BorderThickness" Value="0,0,1,1"/> <Setter Property="Padding" Value="6,4"/> <Setter Property="FontWeight" Value="SemiBold"/> </Style> <Style x:Key="DashboardDataGridCellStyle" TargetType="DataGridCell"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Foreground" Value="{DynamicResource DashboardForegroundBrush}"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="BorderThickness" Value="1"/> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Background" Value="{DynamicResource DashboardBorderBrush}"/> <Setter Property="Foreground" Value="{DynamicResource DashboardForegroundBrush}"/> </Trigger> <Trigger Property="IsKeyboardFocusWithin" Value="True"> <Setter Property="BorderBrush" Value="{DynamicResource DashboardAccentBrush}"/> </Trigger> </Style.Triggers> </Style> <Style x:Key="DashboardDataGridStyle" TargetType="DataGrid"> <Setter Property="Background" Value="{DynamicResource DashboardSurfaceBrush}"/> <Setter Property="RowBackground" Value="{DynamicResource DashboardSurfaceBrush}"/> <Setter Property="Foreground" Value="{DynamicResource DashboardForegroundBrush}"/> <Setter Property="BorderBrush" Value="{DynamicResource DashboardBorderBrush}"/> <Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource DashboardBorderBrush}"/> <Setter Property="VerticalGridLinesBrush" Value="{DynamicResource DashboardBorderBrush}"/> <Setter Property="FontFamily" Value="Segoe UI"/> <Setter Property="ColumnHeaderStyle" Value="{StaticResource DashboardDataGridHeaderStyle}"/> <Setter Property="CellStyle" Value="{StaticResource DashboardDataGridCellStyle}"/> </Style> <Style x:Key="DashboardToolbarButtonStyle" TargetType="Button"> <Setter Property="Background" Value="{StaticResource DashboardSurfaceBrush}"/> <Setter Property="Foreground" Value="{StaticResource DashboardForegroundBrush}"/> <Setter Property="BorderBrush" Value="{StaticResource DashboardBorderBrush}"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="FontFamily" Value="Segoe UI"/> <Setter Property="FontSize" Value="10"/> <Setter Property="MinHeight" Value="24"/> <Setter Property="MinWidth" Value="54"/> <Setter Property="Padding" Value="6,2"/> <Setter Property="Margin" Value="2,0"/> <Setter Property="Cursor" Value="Hand"/> <Setter Property="SnapsToDevicePixels" Value="True"/> </Style> <Style x:Key="DashboardPrimaryButtonStyle" TargetType="Button" BasedOn="{StaticResource DashboardToolbarButtonStyle}"> <Setter Property="BorderBrush" Value="{StaticResource DashboardAccentBrush}"/> <Setter Property="FontSize" Value="13"/> <Setter Property="Padding" Value="10,5"/> <Setter Property="MinWidth" Value="0"/> </Style> <Style x:Key="DashboardExchangeButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Padding" Value="0"/> <Setter Property="Cursor" Value="Hand"/> <Setter Property="FocusVisualStyle" Value="{x:Null}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> <Border x:Name="focusBorder" BorderBrush="Transparent" BorderThickness="2" CornerRadius="5" Margin="-3" IsHitTestVisible="False"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="True"> <Setter TargetName="focusBorder" Property="BorderBrush" Value="{StaticResource DashboardAccentBrush}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="DashboardArticleButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Foreground" Value="{StaticResource DashboardForegroundBrush}"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="Padding" Value="2"/> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="Cursor" Value="Hand"/> <Style.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="True"> <Setter Property="BorderBrush" Value="{StaticResource DashboardAccentBrush}"/> </Trigger> </Style.Triggers> </Style> </ResourceDictionary> |