Files
2026-08-27 11:23:13 -06:00

348 lines
19 KiB
XML

<Window x:Class="Raton.Windows.Settings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Settings" Width="400" Height="510.842" MinWidth="360" Background="#FF202020"
WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Icon="/Raton;component/RATA.ico">
<FrameworkElement.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#3A2D5A"/>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="White"/>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#1E1E1E"/>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#CCCCCC"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
<Style x:Key="ToggleSwitch" TargetType="{x:Type CheckBox}">
<Setter Property="UIElement.Focusable" Value="false"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid VerticalAlignment="Center">
<Border x:Name="Track" Width="40" Height="22" CornerRadius="11" Background="#333"/>
<Ellipse x:Name="Thumb" Width="16" Height="16" Fill="White" HorizontalAlignment="Left" Margin="3,0,0,0"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="ToggleButton.IsChecked" Value="True">
<Setter TargetName="Track" Property="Border.Background" Value="#7B5EA7"/>
<Setter TargetName="Thumb" Property="FrameworkElement.Margin" Value="21,0,0,0"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="InputBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#1A1A1A"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#CCCCCC"/>
<Setter Property="Control.BorderBrush" Value="#2E2E2E"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="10,0"/>
<Setter Property="FrameworkElement.Height" Value="34"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6">
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Control.Padding}" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter Property="Control.BorderBrush" Value="#7B5EA7"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter Property="UIElement.Opacity" Value="0.35"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PurpleButton" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="#7B5EA7"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Height" Value="40"/>
<Setter Property="Control.FontSize" Value="13"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="UIElement.RenderTransformOrigin" Value="0.5,0.5"/>
<Setter Property="UIElement.RenderTransform">
<Setter.Value>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</Setter.Value>
</Setter>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#9370C0"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#5E4480"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.015"
Duration="0:0:0.12">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.015"
Duration="0:0:0.12">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1"
Duration="0:0:0.15">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1"
Duration="0:0:0.15">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
<Style x:Key="GhostButton" TargetType="{x:Type Button}" BasedOn="{StaticResource PurpleButton}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" BorderBrush="#333"
BorderThickness="1" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2E2E2E"/>
<Setter TargetName="Bd" Property="Border.BorderBrush" Value="#7B5EA7"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#1A1A1A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DangerButton" TargetType="{x:Type Button}" BasedOn="{StaticResource PurpleButton}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="#252525" BorderBrush="#3A1A1A" BorderThickness="1" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2E1A1A"/>
<Setter TargetName="Bd" Property="Border.BorderBrush" Value="#C0392B"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#1A0A0A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</FrameworkElement.Resources>
<FrameworkElement.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" From="0" To="1"
Duration="0:0:0.25">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" From="6" To="0"
Duration="0:0:0.25">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</FrameworkElement.Triggers>
<Grid x:Name="Root" Margin="14">
<UIElement.RenderTransform>
<TranslateTransform Y="0"/>
</UIElement.RenderTransform>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#252525" CornerRadius="8" Padding="14,10" Margin="0,0,0,12">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Width="38" Height="38" CornerRadius="10" Margin="0,0,12,0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#3A2A5A" Offset="0"/>
<GradientStop Color="#7B5EA7" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="18" HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="Raton Settings" Foreground="White" FontSize="14" FontWeight="SemiBold"/>
<TextBlock Text="Configure your Raton application with cool options" Foreground="#555" FontSize="11"
Margin="0,2,0,0" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
</Border>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
Margin="0,0,0,12">
<StackPanel>
<TextBlock Text="NOTIFICATIONS" Foreground="#444" FontSize="10" FontWeight="SemiBold" Margin="2,0,0,6"/>
<Border Background="#252525" CornerRadius="8" Padding="14,12" Margin="0,0,0,6">
<StackPanel>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Width="30" Height="30" CornerRadius="8" Margin="0,0,10,0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#2A2A5A" Offset="0"/>
<GradientStop Color="#5865F2" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="Discord Webhook" Foreground="#CCCCCC" FontSize="13" FontWeight="SemiBold"/>
<TextBlock Text="Send a message when a new client is connected" Foreground="#555" FontSize="11"
Margin="0,2,0,0"/>
</StackPanel>
<CheckBox Checked="ChkWebhook_Changed" Unchecked="ChkWebhook_Changed" x:Name="ChkWebhook" Grid.Column="2"
Style="{StaticResource ToggleSwitch}"/>
</Grid>
<TextBox x:Name="TbWebhookUrl" Style="{StaticResource InputBox}" IsEnabled="false"/>
<TextBlock Text="discord.com/api/webhooks/..." Foreground="#383838" FontSize="10" Margin="4,3,0,0"/>
</StackPanel>
</Border>
<Border Background="#252525" CornerRadius="8" Padding="14,12" Margin="0,0,0,14">
<StackPanel>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Width="30" Height="30" CornerRadius="8" Margin="0,0,10,0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#1A3A5A" Offset="0"/>
<GradientStop Color="#229ED9" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="Telegram Bot" Foreground="#CCCCCC" FontSize="13" FontWeight="SemiBold"/>
<TextBlock Text="Send a message when a new client is connected" Foreground="#555" FontSize="11"
Margin="0,2,0,0"/>
</StackPanel>
<CheckBox Checked="ChkBot_Changed" Unchecked="ChkBot_Changed" x:Name="ChkBot" Grid.Column="2"
Style="{StaticResource ToggleSwitch}"/>
</Grid>
<TextBlock Text="Bot Token" Foreground="#555" FontSize="11" Margin="0,0,0,4"/>
<TextBox x:Name="TbBotToken" Style="{StaticResource InputBox}" IsEnabled="false" Margin="0,0,0,8"/>
<TextBlock Text="Chat ID" Foreground="#555" FontSize="11" Margin="0,0,0,4"/>
<TextBox x:Name="TbChatId" Style="{StaticResource InputBox}" IsEnabled="false"/>
</StackPanel>
</Border>
<TextBlock Text="APPEARANCE" Foreground="#444" FontSize="10" FontWeight="SemiBold" Margin="2,0,0,6"/>
<Border Background="#252525" CornerRadius="8" Padding="14,12" Margin="0,0,0,14">
<StackPanel>
<Button Click="BtnPfp_Click" x:Name="BtnPfp" Style="{StaticResource GhostButton}" Margin="0,0,0,8">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#7B5EA7" Margin="0,0,8,0"/>
<TextBlock Text="Change profile picture" Foreground="#CCCCCC" FontSize="13"/>
</StackPanel>
</Button>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<Button Click="BtnWallpaper_Click" x:Name="BtnWallpaper" Grid.Column="0"
Style="{StaticResource GhostButton}" Margin="0,0,6,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#7B5EA7" Margin="0,0,8,0"/>
<TextBlock Text="Change wallpaper" Foreground="#CCCCCC" FontSize="13"/>
</StackPanel>
</Button>
<Button Click="BtnRemoveWall_Click" x:Name="BtnRemoveWall" Grid.Column="1"
Style="{StaticResource DangerButton}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#C0392B" Margin="0,0,6,0"/>
<TextBlock Text="Remove" Foreground="#CC6666" FontSize="13"/>
</StackPanel>
</Button>
</Grid>
</StackPanel>
</Border>
<TextBlock Text="DISCORD" Foreground="#444" FontSize="10" FontWeight="SemiBold" Margin="2,0,0,6"/>
<Border Background="#252525" CornerRadius="8" Padding="14,12" Margin="0,0,0,4">
<Button Click="BtnDisableRpc_Click" x:Name="BtnDisableRpc" Style="{StaticResource DangerButton}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#C0392B" Margin="0,0,8,0"/>
<TextBlock Text="Disable Discord RPC" Foreground="#CC6666" FontSize="13"/>
</StackPanel>
</Button>
</Border>
</StackPanel>
</ScrollViewer>
<Button Click="BtnSave_Click" x:Name="BtnSave" Grid.Row="2" Style="{StaticResource PurpleButton}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Margin="0,0,8,0" Foreground="White"/>
<TextBlock Text="Save and restart" Foreground="White" FontSize="13" FontWeight="SemiBold"/>
</StackPanel>
</Button>
</Grid>
</Window>