116 lines
5.6 KiB
XML
116 lines
5.6 KiB
XML
<Application x:Class="LD_SysInfo.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<!-- Set to Dark Theme with valid colors -->
|
|
<materialDesign:BundledTheme BaseTheme="Dark"
|
|
PrimaryColor="BlueGrey"
|
|
SecondaryColor="Indigo" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- Custom color overrides -->
|
|
<SolidColorBrush x:Key="PrimaryBrush" Color="#4776cd" />
|
|
<SolidColorBrush x:Key="BackgroundDarkBrush" Color="#333333" />
|
|
<SolidColorBrush x:Key="TextBrush" Color="#E5E4E2" />
|
|
<SolidColorBrush x:Key="TextDarkBrush" Color="#E5E4E2" />
|
|
<SolidColorBrush x:Key="ErrorBrush" Color="#A6262A" />
|
|
<SolidColorBrush x:Key="SelectedLightBrush" Color="#E5E4E2" />
|
|
|
|
<SolidColorBrush x:Key="TitleBrush" Color="#D5484D" />
|
|
<SolidColorBrush x:Key="HoverBrush" Color="#3F70CA" />
|
|
|
|
<!-- Tab colors -->
|
|
<SolidColorBrush x:Key="TabUnselectedBrush" Color="#A9A9A9" />
|
|
<SolidColorBrush x:Key="TabUnselectedBackGround" Color="#A9A9A9" />
|
|
<SolidColorBrush x:Key="TabSelectedBrush" Color="#F3FCF0" />
|
|
|
|
<SolidColorBrush x:Key="StatusConnectedBrush" Color="green" />
|
|
<SolidColorBrush x:Key="HoverBackgroundBrush" Color="#16408D"/>
|
|
<!-- Darker blue -->
|
|
<SolidColorBrush x:Key="HoverForegroundBrush" Color="#FF173788"/>
|
|
<!-- Yellow -->
|
|
|
|
|
|
|
|
<Style x:Key="CustomRaisedButton" TargetType="Button" BasedOn="{x:Null}">
|
|
<Setter Property="Foreground" Value="{DynamicResource SelectedLightBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource PrimaryBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryBrush}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="Padding" Value="10,5" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4">
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Margin="{TemplateBinding Padding}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource HoverBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource HoverForegroundBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource HoverBackgroundBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource HoverForegroundBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="border" Property="Background" Value="#555" />
|
|
<Setter Property="Foreground" Value="#AAA" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="Button">
|
|
<Setter Property="Background" Value="{DynamicResource PrimaryBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Padding" Value="10,5"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="{DynamicResource HoverBackgroundBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource HoverForegroundBrush}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- TabItem Style -->
|
|
<Style TargetType="TabItem">
|
|
<Setter Property="Background" Value="{DynamicResource TabUnselectedBackGround}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource TabUnselectedBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryBrush}" />
|
|
|
|
<!-- Style for selected tab -->
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsSelected}" Value="True">
|
|
<Setter Property="Foreground" Value="{DynamicResource TabSelectedBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource PrimaryBrush}" />
|
|
<!-- Optionally adjust the border for selected tab -->
|
|
<Setter Property="BorderBrush" Value="{DynamicResource TabSelectedBrush}" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|