mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-21 22:19:07 +00:00
362 lines
21 KiB
XML
362 lines
21 KiB
XML
<Application x:Class="AutoTrackR2.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:AutoTrackR2"
|
|
StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<FontFamily x:Key="Orbitron">/AutoTrackR2;component/Fonts/Orbitron-Bold.ttf#Orbitron</FontFamily>
|
|
<FontFamily x:Key="Roboto">/AutoTrackR2;component/Fonts/Roboto-Regular.ttf#Roboto</FontFamily>
|
|
|
|
<FontFamily x:Key="DynamicFont">"{}"</FontFamily>
|
|
|
|
<!-- Default theme -->
|
|
<Color x:Key="AccentColor">#00A9E0</Color>
|
|
<Color x:Key="BackgroundDarkColor">#0F1A2B</Color>
|
|
<Color x:Key="BackgroundLightColor">#1D2D44</Color>
|
|
<Color x:Key="TextColor">#FFFFFF</Color>
|
|
|
|
<SolidColorBrush x:Key="TextBrush" Color="{DynamicResource TextColor}" />
|
|
<SolidColorBrush x:Key="AccentBrush" Color="{DynamicResource AccentColor}" />
|
|
<SolidColorBrush x:Key="BackgroundDarkBrush" Color="{DynamicResource BackgroundDarkColor}" />
|
|
<SolidColorBrush x:Key="BackgroundLightBrush" Color="{DynamicResource BackgroundLightColor}" />
|
|
|
|
<!-- Define the Style for Window -->
|
|
<Style TargetType="Window" x:Key="CustomWindowStyle">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Window">
|
|
<Border BorderBrush="{DynamicResource AccentBrush}" BorderThickness="2" CornerRadius="10" Background="{DynamicResource BackgroundLightBrush}">
|
|
<Grid>
|
|
<ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Tab Button Style -->
|
|
<Style x:Key="TabButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Padding" Value="10"/>
|
|
<Setter Property="Margin" Value="5"/>
|
|
<Setter Property="FontFamily" Value="{StaticResource Orbitron}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
|
|
<!-- ContentPresenter will automatically inherit Foreground from Button -->
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
<!-- General Button Style -->
|
|
<Style x:Key="DisabledButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="Gray"/>
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}"/>
|
|
<Setter Property="BorderBrush" Value="Gray"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Padding" Value="5"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Padding" Value="5"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Title Bar Button Style -->
|
|
<Style x:Key="TitleButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
BorderThickness="2"
|
|
CornerRadius="5"
|
|
Margin="0,1,4,1">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Custom Style for Rounded TextBox -->
|
|
<Style x:Key="RoundedTextBox" TargetType="TextBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
|
|
<Setter Property="FontFamily" Value="{StaticResource Roboto}"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Padding" Value="5"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<!-- The actual border with rounded corners -->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="5">
|
|
<ScrollViewer x:Name="PART_ContentHost"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Custom Style for Slider -->
|
|
<Style x:Key="ThreePositionSlider" TargetType="Slider">
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="Width" Value="160" />
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Slider">
|
|
<Grid Width="120" Height="30" HorizontalAlignment="Left" Margin="58,-6,0,0">
|
|
<!-- Track Background -->
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="2" CornerRadius="15" Margin="0,0,-5,-4" />
|
|
|
|
<!-- Track -->
|
|
<Track x:Name="PART_Track">
|
|
<Track.Thumb>
|
|
<Thumb x:Name="PART_Thumb"
|
|
Width="22"
|
|
Height="22"
|
|
Margin="6,4,1,0">
|
|
<Thumb.Template>
|
|
<ControlTemplate TargetType="Thumb">
|
|
<Ellipse Fill="{DynamicResource AccentBrush}" />
|
|
</ControlTemplate>
|
|
</Thumb.Template>
|
|
</Thumb>
|
|
</Track.Thumb>
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.IncreaseRepeatButton>
|
|
</Track>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Toggle Slider Style -->
|
|
<Style x:Key="ToggleSliderStyle" TargetType="Slider">
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="Width" Value="160" />
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Slider">
|
|
<Grid Width="50" Height="30" HorizontalAlignment="Left" >
|
|
<!-- Track Background -->
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="2" CornerRadius="15" Margin="0,0,-5,-4" />
|
|
|
|
<!-- Track -->
|
|
<Track x:Name="PART_Track">
|
|
<Track.Thumb>
|
|
<Thumb x:Name="PART_Thumb"
|
|
Width="22"
|
|
Height="22"
|
|
Margin="6,4,1,0">
|
|
<Thumb.Template>
|
|
<ControlTemplate TargetType="Thumb">
|
|
<Ellipse Fill="{DynamicResource AccentBrush}" />
|
|
</ControlTemplate>
|
|
</Thumb.Template>
|
|
</Thumb>
|
|
</Track.Thumb>
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.IncreaseRepeatButton>
|
|
</Track>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- False toggle theme -->
|
|
<Style x:Key="FalseToggleStyle" TargetType="Slider">
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="Width" Value="160" />
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundDarkBrush}" />
|
|
<Setter Property="BorderBrush" Value="Gray" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Slider">
|
|
<Grid Width="50" Height="30" HorizontalAlignment="Left" >
|
|
<!-- Track Background -->
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="2" CornerRadius="15" Margin="0,0,-5,-4" />
|
|
|
|
<!-- Track -->
|
|
<Track x:Name="PART_Track">
|
|
<Track.Thumb>
|
|
<Thumb x:Name="PART_Thumb"
|
|
Width="22"
|
|
Height="22"
|
|
Margin="6,4,1,0">
|
|
<Thumb.Template>
|
|
<ControlTemplate TargetType="Thumb">
|
|
<Ellipse Fill="Gray" />
|
|
</ControlTemplate>
|
|
</Thumb.Template>
|
|
</Thumb>
|
|
</Track.Thumb>
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.DecreaseRepeatButton>
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" IsHitTestVisible="False"/>
|
|
</Track.IncreaseRepeatButton>
|
|
</Track>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Modern Rounded ScrollBar Style -->
|
|
<Style TargetType="ScrollBar">
|
|
<Setter Property="Width" Value="5" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ScrollBar">
|
|
<Grid>
|
|
<Track Name="PART_Track" IsDirectionReversed="true" Width="12" Margin="5,0,0,0">
|
|
<!-- Decrease Repeat Button -->
|
|
<Track.DecreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0">
|
|
<RepeatButton.Template>
|
|
<ControlTemplate TargetType="RepeatButton">
|
|
<Grid x:Name="RepeatButtonGrid">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup Name="CommonStates">
|
|
<VisualState Name="Normal">
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RepeatButtonGrid" To="1" Duration="0:0:0"/>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState Name="MouseOver">
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RepeatButtonGrid" To="0" Duration="0:0:0.1"/>
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</RepeatButton.Template>
|
|
</RepeatButton>
|
|
</Track.DecreaseRepeatButton>
|
|
|
|
|
|
<!-- Thumb (Handle) -->
|
|
<Track.Thumb>
|
|
<Thumb>
|
|
<Thumb.Template>
|
|
<ControlTemplate TargetType="Thumb">
|
|
<Grid>
|
|
<Border
|
|
Background="{DynamicResource BackgroundBrush}"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
BorderThickness="2"
|
|
CornerRadius="3" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Thumb.Template>
|
|
</Thumb>
|
|
</Track.Thumb>
|
|
|
|
<!-- Increase Repeat Button -->
|
|
<Track.IncreaseRepeatButton>
|
|
<RepeatButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0">
|
|
<RepeatButton.Template>
|
|
<ControlTemplate TargetType="RepeatButton">
|
|
<Grid x:Name="RepeatButtonGrid">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup Name="CommonStates">
|
|
<VisualState Name="Normal">
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RepeatButtonGrid" To="1" Duration="0:0:0"/>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState Name="MouseOver">
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RepeatButtonGrid" To="0" Duration="0:0:0.1"/>
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</RepeatButton.Template>
|
|
</RepeatButton>
|
|
</Track.IncreaseRepeatButton>
|
|
</Track>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</Application.Resources>
|
|
</Application>
|