|
| 1 | +<Application x:Class="HandshakeDVPN.App" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + StartupUri="MainWindow.xaml"> |
| 5 | + <Application.Resources> |
| 6 | + <!-- ═══ Handshake Black & White Theme ═══ --> |
| 7 | + <SolidColorBrush x:Key="Bg0" Color="#FFFFFF"/> |
| 8 | + <SolidColorBrush x:Key="Bg1" Color="#FAFAFA"/> |
| 9 | + <SolidColorBrush x:Key="Bg2" Color="#F2F2F2"/> |
| 10 | + <SolidColorBrush x:Key="Bg3" Color="#E8E8E8"/> |
| 11 | + <SolidColorBrush x:Key="Bg4" Color="#D9D9D9"/> |
| 12 | + <SolidColorBrush x:Key="Bdr" Color="#E0E0E0"/> |
| 13 | + <SolidColorBrush x:Key="BdrH" Color="#C0C0C0"/> |
| 14 | + <SolidColorBrush x:Key="T1" Color="#000000"/> |
| 15 | + <SolidColorBrush x:Key="T2" Color="#555555"/> |
| 16 | + <SolidColorBrush x:Key="T3" Color="#999999"/> |
| 17 | + <SolidColorBrush x:Key="Acc" Color="#000000"/> |
| 18 | + <SolidColorBrush x:Key="AccDim" Color="#14000000"/> |
| 19 | + <SolidColorBrush x:Key="AccLight" Color="#F0F0F0"/> |
| 20 | + <SolidColorBrush x:Key="Blue" Color="#4F8FFF"/> |
| 21 | + <SolidColorBrush x:Key="BlueDim" Color="#1A4F8FFF"/> |
| 22 | + <SolidColorBrush x:Key="Green" Color="#22C55E"/> |
| 23 | + <SolidColorBrush x:Key="GreenDim" Color="#1422C55E"/> |
| 24 | + <SolidColorBrush x:Key="Red" Color="#DC2626"/> |
| 25 | + <SolidColorBrush x:Key="RedDim" Color="#1ADC2626"/> |
| 26 | + <SolidColorBrush x:Key="Amber" Color="#D97706"/> |
| 27 | + <SolidColorBrush x:Key="AmberDim" Color="#1AD97706"/> |
| 28 | + |
| 29 | + <!-- ─── Fonts ─── --> |
| 30 | + <FontFamily x:Key="Sans">pack://application:,,,/Fonts/#Inter</FontFamily> |
| 31 | + <FontFamily x:Key="Mono">Cascadia Code, Consolas, monospace</FontFamily> |
| 32 | + <FontFamily x:Key="Emoji">Segoe UI Emoji</FontFamily> |
| 33 | + |
| 34 | + <!-- ─── Primary Button (Black) ─── --> |
| 35 | + <Style x:Key="BtnAcc" TargetType="Button"> |
| 36 | + <Setter Property="Background" Value="{StaticResource Acc}"/> |
| 37 | + <Setter Property="Foreground" Value="White"/> |
| 38 | + <Setter Property="FontFamily" Value="{StaticResource Sans}"/> |
| 39 | + <Setter Property="FontSize" Value="13"/> |
| 40 | + <Setter Property="FontWeight" Value="SemiBold"/> |
| 41 | + <Setter Property="Padding" Value="20,11"/> |
| 42 | + <Setter Property="Cursor" Value="Hand"/> |
| 43 | + <Setter Property="Template"> |
| 44 | + <Setter.Value> |
| 45 | + <ControlTemplate TargetType="Button"> |
| 46 | + <Border Background="{TemplateBinding Background}" CornerRadius="8" Padding="{TemplateBinding Padding}"> |
| 47 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 48 | + </Border> |
| 49 | + </ControlTemplate> |
| 50 | + </Setter.Value> |
| 51 | + </Setter> |
| 52 | + <Style.Triggers> |
| 53 | + <Trigger Property="IsMouseOver" Value="True"><Setter Property="Background" Value="#333333"/></Trigger> |
| 54 | + <Trigger Property="IsEnabled" Value="False"><Setter Property="Background" Value="{StaticResource Bg4}"/><Setter Property="Foreground" Value="{StaticResource T3}"/></Trigger> |
| 55 | + </Style.Triggers> |
| 56 | + </Style> |
| 57 | + |
| 58 | + <!-- ─── Ghost Button ─── --> |
| 59 | + <Style x:Key="BtnGhost" TargetType="Button"> |
| 60 | + <Setter Property="Background" Value="Transparent"/> |
| 61 | + <Setter Property="Foreground" Value="{StaticResource T3}"/> |
| 62 | + <Setter Property="FontFamily" Value="{StaticResource Sans}"/> |
| 63 | + <Setter Property="FontSize" Value="11"/> |
| 64 | + <Setter Property="Padding" Value="8,4"/> |
| 65 | + <Setter Property="Cursor" Value="Hand"/> |
| 66 | + <Setter Property="Template"> |
| 67 | + <Setter.Value> |
| 68 | + <ControlTemplate TargetType="Button"> |
| 69 | + <Border Background="{TemplateBinding Background}" BorderBrush="{StaticResource Bdr}" BorderThickness="1" CornerRadius="6" Padding="{TemplateBinding Padding}"> |
| 70 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 71 | + </Border> |
| 72 | + </ControlTemplate> |
| 73 | + </Setter.Value> |
| 74 | + </Setter> |
| 75 | + <Style.Triggers> |
| 76 | + <Trigger Property="IsMouseOver" Value="True"><Setter Property="Foreground" Value="{StaticResource T1}"/></Trigger> |
| 77 | + </Style.Triggers> |
| 78 | + </Style> |
| 79 | + |
| 80 | + <!-- ─── Light TextBox ─── --> |
| 81 | + <Style x:Key="TbLight" TargetType="TextBox"> |
| 82 | + <Setter Property="Background" Value="{StaticResource Bg0}"/> |
| 83 | + <Setter Property="Foreground" Value="{StaticResource T1}"/> |
| 84 | + <Setter Property="BorderBrush" Value="{StaticResource Bdr}"/> |
| 85 | + <Setter Property="BorderThickness" Value="1"/> |
| 86 | + <Setter Property="Padding" Value="12,10"/> |
| 87 | + <Setter Property="FontFamily" Value="{StaticResource Mono}"/> |
| 88 | + <Setter Property="FontSize" Value="12"/> |
| 89 | + <Setter Property="CaretBrush" Value="{StaticResource T1}"/> |
| 90 | + <Setter Property="Template"> |
| 91 | + <Setter.Value> |
| 92 | + <ControlTemplate TargetType="TextBox"> |
| 93 | + <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" |
| 94 | + BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8" Padding="{TemplateBinding Padding}"> |
| 95 | + <ScrollViewer x:Name="PART_ContentHost"/> |
| 96 | + </Border> |
| 97 | + </ControlTemplate> |
| 98 | + </Setter.Value> |
| 99 | + </Setter> |
| 100 | + </Style> |
| 101 | + |
| 102 | + <!-- ─── Filter Button ─── --> |
| 103 | + <Style x:Key="FilterBtn" TargetType="Button"> |
| 104 | + <Setter Property="Background" Value="Transparent"/> |
| 105 | + <Setter Property="Foreground" Value="{StaticResource T3}"/> |
| 106 | + <Setter Property="FontFamily" Value="{StaticResource Sans}"/> |
| 107 | + <Setter Property="FontSize" Value="11"/> |
| 108 | + <Setter Property="FontWeight" Value="Medium"/> |
| 109 | + <Setter Property="Padding" Value="0,6"/> |
| 110 | + <Setter Property="Cursor" Value="Hand"/> |
| 111 | + <Setter Property="Template"> |
| 112 | + <Setter.Value> |
| 113 | + <ControlTemplate TargetType="Button"> |
| 114 | + <Border Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="1" CornerRadius="6" Padding="{TemplateBinding Padding}"> |
| 115 | + <ContentPresenter HorizontalAlignment="Center"/> |
| 116 | + </Border> |
| 117 | + </ControlTemplate> |
| 118 | + </Setter.Value> |
| 119 | + </Setter> |
| 120 | + <Style.Triggers> |
| 121 | + <Trigger Property="IsMouseOver" Value="True"><Setter Property="Foreground" Value="{StaticResource T1}"/></Trigger> |
| 122 | + </Style.Triggers> |
| 123 | + </Style> |
| 124 | + </Application.Resources> |
| 125 | +</Application> |
0 commit comments