202 lines
11 KiB
XML
202 lines
11 KiB
XML
<Application x:Class="FoxBrowser.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<!-- FoxBrowser visual system -->
|
|
<SolidColorBrush x:Key="WindowBg" Color="#0F1217" />
|
|
<SolidColorBrush x:Key="HeaderBg" Color="#171B22" />
|
|
<SolidColorBrush x:Key="HeaderBgElevated" Color="#1D222B" />
|
|
<SolidColorBrush x:Key="CardBg" Color="#202630" />
|
|
<SolidColorBrush x:Key="CardBgHover" Color="#28303C" />
|
|
<SolidColorBrush x:Key="BorderDark" Color="#29313C" />
|
|
<SolidColorBrush x:Key="BorderMedium" Color="#3B4655" />
|
|
<SolidColorBrush x:Key="AurBlue" Color="#78AFFF" />
|
|
<SolidColorBrush x:Key="AurBlueSoft" Color="#243B62" />
|
|
<SolidColorBrush x:Key="TextPrimary" Color="#F5F7FB" />
|
|
<SolidColorBrush x:Key="TextSecondary" Color="#B7C2D2" />
|
|
<SolidColorBrush x:Key="TextMuted" Color="#7E8A9C" />
|
|
<SolidColorBrush x:Key="DangerBg" Color="#4B252D" />
|
|
<SolidColorBrush x:Key="DangerText" Color="#FF9BA8" />
|
|
|
|
<Style TargetType="Button">
|
|
<Setter Property="Background" Value="#242B35" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimary}" />
|
|
<Setter Property="BorderBrush" Value="#35404E" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="10,6" />
|
|
<Setter Property="Margin" Value="2,0" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="FontFamily" Value="Segoe UI" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="ButtonBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="7"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ButtonBorder" Property="Background" Value="{StaticResource CardBgHover}" />
|
|
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="#536174" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="ButtonBorder" Property="Background" Value="#1B222C" />
|
|
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="{StaticResource AurBlue}" />
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
|
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="{StaticResource AurBlue}" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="ButtonBorder" Property="Opacity" Value="0.45" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="IconButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Width" Value="32" />
|
|
<Setter Property="Height" Value="32" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextSecondary}" />
|
|
</Style>
|
|
|
|
<Style x:Key="PrimaryButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Background" Value="{StaticResource AurBlue}" />
|
|
<Setter Property="Foreground" Value="#0B1220" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource AurBlue}" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Padding" Value="14,6" />
|
|
</Style>
|
|
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Background" Value="#12171E" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimary}" />
|
|
<Setter Property="BorderBrush" Value="#303A49" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="12,6" />
|
|
<Setter Property="FontFamily" Value="Segoe UI" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="CaretBrush" Value="{StaticResource AurBlue}" />
|
|
<Setter Property="SelectionBrush" Value="#5078AFFF" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border x:Name="TextBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="8">
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Focusable="False"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
VerticalScrollBarVisibility="Hidden" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="TextBorder" Property="BorderBrush" Value="#536174" />
|
|
</Trigger>
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="TextBorder" Property="BorderBrush" Value="{StaticResource AurBlue}" />
|
|
<Setter TargetName="TextBorder" Property="Background" Value="#161D27" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="ToolTip">
|
|
<Setter Property="Background" Value="#1D232C" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimary}" />
|
|
<Setter Property="BorderBrush" Value="#3B4655" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="9,5" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToolTip">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="FoxContextMenu" TargetType="ContextMenu">
|
|
<Setter Property="Background" Value="#171B22" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimary}" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Padding" Value="8" />
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ContextMenu">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="8"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ItemsPresenter />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="FoxMenuButton" TargetType="Button">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimary}" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="Padding" Value="9,7" />
|
|
<Setter Property="Margin" Value="0,1" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="MenuButtonBorder"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="MenuButtonBorder" Property="Background" Value="{StaticResource CardBgHover}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="MenuButtonBorder" Property="Background" Value="{StaticResource AurBlueSoft}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Application.Resources>
|
|
</Application>
|