LD-Uninstaller/src-csharp/LDUninstaller.UI/App.xaml

226 lines
13 KiB
XML

<Application x:Class="LDUninstaller.UI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml"
ShutdownMode="OnMainWindowClose">
<Application.Resources>
<!-- ================= LOGO-INSPIRED TITANIUM & SAPPHIRE PALETTE ================= -->
<!-- Deep Titanium & Slate Backgrounds -->
<Color x:Key="BgDark">#0F1115</Color>
<Color x:Key="BgSidebar">#15181E</Color>
<Color x:Key="BgCard">#1A1E26</Color>
<Color x:Key="BgCardHover">#232833</Color>
<Color x:Key="BgCardActive">#2A303D</Color>
<Color x:Key="BorderColor">#2A303D</Color>
<Color x:Key="BorderLight">#3D4658</Color>
<Color x:Key="BorderGlow">#4F6386</Color>
<!-- Platinum, Silver & Titanium Typography -->
<Color x:Key="TextPrimary">#F8FAFC</Color>
<Color x:Key="TextSecondary">#CBD5E1</Color>
<Color x:Key="TextMuted">#7E8B9F</Color>
<Color x:Key="TextDim">#525D6F</Color>
<!-- Translucent Sapphire Glass Accents (from Logo Middle Layer) -->
<Color x:Key="AccentBlue">#2563EB</Color>
<Color x:Key="AccentBlueHover">#3B82F6</Color>
<Color x:Key="AccentBlueDeep">#1D4ED8</Color>
<Color x:Key="AccentBlueLight">#60A5FA</Color>
<Color x:Key="AccentBlueGlow">#93C5FD</Color>
<Color x:Key="AccentGlassTint">#14233C</Color>
<Color x:Key="AccentGlassBorder">#3B82F6</Color>
<!-- Precision & Status Accents -->
<Color x:Key="AccentGreen">#10B981</Color>
<Color x:Key="AccentGreenHover">#059669</Color>
<Color x:Key="AccentGreenGlass">#064E3B</Color>
<Color x:Key="AccentRed">#F43F5E</Color>
<Color x:Key="AccentRedHover">#E11D48</Color>
<Color x:Key="AccentPurple">#8B5CF6</Color>
<Color x:Key="AccentCyan">#0EA5E9</Color>
<Color x:Key="AccentAmber">#F59E0B</Color>
<!-- SolidColorBrushes -->
<SolidColorBrush x:Key="BrushBgDark" Color="{StaticResource BgDark}" />
<SolidColorBrush x:Key="BrushBgSidebar" Color="{StaticResource BgSidebar}" />
<SolidColorBrush x:Key="BrushBgCard" Color="{StaticResource BgCard}" />
<SolidColorBrush x:Key="BrushBgCardHover" Color="{StaticResource BgCardHover}" />
<SolidColorBrush x:Key="BrushBorder" Color="{StaticResource BorderColor}" />
<SolidColorBrush x:Key="BrushBorderLight" Color="{StaticResource BorderLight}" />
<SolidColorBrush x:Key="BrushTextPrimary" Color="{StaticResource TextPrimary}" />
<SolidColorBrush x:Key="BrushTextSecondary" Color="{StaticResource TextSecondary}" />
<SolidColorBrush x:Key="BrushTextMuted" Color="{StaticResource TextMuted}" />
<SolidColorBrush x:Key="BrushTextDim" Color="{StaticResource TextDim}" />
<SolidColorBrush x:Key="BrushAccentBlue" Color="{StaticResource AccentBlue}" />
<SolidColorBrush x:Key="BrushAccentBlueHover" Color="{StaticResource AccentBlueHover}" />
<SolidColorBrush x:Key="BrushAccentBlueLight" Color="{StaticResource AccentBlueLight}" />
<SolidColorBrush x:Key="BrushAccentGreen" Color="{StaticResource AccentGreen}" />
<SolidColorBrush x:Key="BrushAccentRed" Color="{StaticResource AccentRed}" />
<SolidColorBrush x:Key="BrushAccentPurple" Color="{StaticResource AccentPurple}" />
<SolidColorBrush x:Key="BrushAccentCyan" Color="{StaticResource AccentCyan}" />
<SolidColorBrush x:Key="BrushAccentAmber" Color="{StaticResource AccentAmber}" />
<!-- LinearGradients (Sapphire Glass & Titanium Metal) -->
<LinearGradientBrush x:Key="BrushGlassSapphire" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#3B82F6" Offset="0.0" />
<GradientStop Color="#2563EB" Offset="0.4" />
<GradientStop Color="#1D4ED8" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BrushGlassSapphireHover" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#60A5FA" Offset="0.0" />
<GradientStop Color="#3B82F6" Offset="0.4" />
<GradientStop Color="#2563EB" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BrushMetallicSurface" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#242934" Offset="0.0" />
<GradientStop Color="#1A1E26" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BrushMetallicHover" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#2E3442" Offset="0.0" />
<GradientStop Color="#222731" Offset="1.0" />
</LinearGradientBrush>
<!-- ================= MODERN BUTTON STYLES ================= -->
<!-- Sapphire Glass Primary Button -->
<Style x:Key="ModernBtnPrimary" TargetType="Button">
<Setter Property="Background" Value="{StaticResource BrushGlassSapphire}" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="FontSize" Value="13" />
<Setter Property="Padding" Value="16,8" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="#4B6EAF" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="{StaticResource BrushGlassSapphireHover}" />
<Setter TargetName="border" Property="BorderBrush" Value="#60A5FA" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Opacity" Value="0.88" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="border" Property="Opacity" Value="0.4" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Titanium Metal Secondary Button -->
<Style x:Key="ModernBtnSecondary" TargetType="Button">
<Setter Property="Background" Value="{StaticResource BrushMetallicSurface}" />
<Setter Property="Foreground" Value="{StaticResource BrushTextPrimary}" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="FontSize" Value="13" />
<Setter Property="Padding" Value="14,7" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="{StaticResource BrushMetallicHover}" />
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource BrushBorderLight}" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Opacity" Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Sidebar Navigation Button Style (Sapphire Glass Indicator) -->
<Style x:Key="SidebarNavBtn" TargetType="RadioButton">
<Setter Property="Foreground" Value="{StaticResource BrushTextSecondary}" />
<Setter Property="FontSize" Value="13.5" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Padding" Value="14,10" />
<Setter Property="Margin" Value="0,3" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="navBorder" Background="Transparent" BorderThickness="1" BorderBrush="Transparent" CornerRadius="8" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="navBorder" Property="Background" Value="#1C212B" />
<Setter TargetName="navBorder" Property="BorderBrush" Value="#29303D" />
<Setter Property="Foreground" Value="{StaticResource BrushTextPrimary}" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="navBorder" Property="Background" Value="{StaticResource BrushGlassSapphire}" />
<Setter TargetName="navBorder" Property="BorderBrush" Value="#4B6EAF" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontWeight" Value="SemiBold" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Modern TextBox Style -->
<Style x:Key="ModernTextBox" TargetType="TextBox">
<Setter Property="Background" Value="#171A21" />
<Setter Property="Foreground" Value="{StaticResource BrushTextPrimary}" />
<Setter Property="CaretBrush" Value="{StaticResource BrushAccentBlueLight}" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="10,7" />
<Setter Property="FontSize" Value="13" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8">
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource BrushAccentBlueHover}" />
<Setter TargetName="border" Property="Background" Value="#1C2028" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Modern ComboBox Style -->
<Style x:Key="ModernComboBox" TargetType="ComboBox">
<Setter Property="Background" Value="#171A21" />
<Setter Property="Foreground" Value="{StaticResource BrushTextPrimary}" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="10,6" />
<Setter Property="FontSize" Value="12.5" />
</Style>
<!-- Modern CheckBox Style -->
<Style x:Key="ModernCheckBox" TargetType="CheckBox">
<Setter Property="Foreground" Value="{StaticResource BrushTextPrimary}" />
<Setter Property="FontSize" Value="13" />
<Setter Property="Cursor" Value="Hand" />
</Style>
</Application.Resources>
</Application>