first commit
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
<Window x:Name="window" x:Class="ClassicAssist.UI.Views.GIFRecorderWindow"
|
||||
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:ClassicAssist.UI.Views"
|
||||
xmlns:controls="clr-namespace:ClassicAssist.UI.Controls"
|
||||
xmlns:viewModels="clr-namespace:ClassicAssist.UI.ViewModels"
|
||||
xmlns:resources="clr-namespace:ClassicAssist.Shared.Resources;assembly=ClassicAssist.Shared"
|
||||
xmlns:misc="clr-namespace:ClassicAssist.Misc"
|
||||
mc:Ignorable="d" AllowsTransparency="True" WindowStyle="None"
|
||||
Title="GIFRecorderWindow" Height="300" Width="300" Background="Transparent" ResizeMode="CanResizeWithGrip"
|
||||
Topmost="True">
|
||||
<Window.DataContext>
|
||||
<viewModels:GIFRecorderViewModel />
|
||||
</Window.DataContext>
|
||||
<Window.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
||||
<DrawingImage x:Key="WaitIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M-63,0 V512 H449 V-63 H0 Z">
|
||||
<DrawingGroup.Transform>
|
||||
<TranslateTransform X="63" Y="0" />
|
||||
</DrawingGroup.Transform>
|
||||
<GeometryDrawing Brush="#FFE9E3D5"
|
||||
Geometry="F1 M512,512z M0,0z M316.554688,162.183594C351.578125,127.164062,370.863281,80.59375,370.863281,31.066406L370.863281,19.058594C362.246094,19.058594,19.6875000000001,19.058594,15.4531250000001,19.058594L15.4531250000001,31.066406C15.4531250000001,80.597656,34.7421880000001,127.164062,69.7656250000001,162.183594L148.28125,240.703125C156.730469,249.152344,156.730469,262.851562,148.28125,271.296875L69.7656250000001,349.816406C34.7421880000001,384.835938,15.4531250000001,431.40625,15.4531250000001,480.9375L15.4531250000001,492.941406 370.863281,492.941406 370.863281,480.9375C370.863281,431.40625,351.578125,384.839844,316.554688,349.816406L238.035156,271.296875C229.585938,262.851562,229.585938,249.152344,238.035156,240.703125z M316.554688,162.183594" />
|
||||
<GeometryDrawing Brush="#FFD3CDBF"
|
||||
Geometry="F1 M512,512z M0,0z M339.960938,31.0625C339.960938,72.339844,323.886719,111.144531,294.699219,140.332031L216.183594,218.847656C195.699219,239.332031,195.699219,272.664062,216.183594,293.152344L294.699219,371.667969C323.886719,400.855469,339.960938,439.660156,339.960938,480.9375L339.960938,492.941406 370.863281,492.941406 370.863281,480.9375C370.863281,431.40625,351.578125,384.839844,316.554688,349.816406L238.035156,271.296875C229.585938,262.851562,229.585938,249.152344,238.035156,240.703125L316.554688,162.183594C351.578125,127.164062,370.863281,80.59375,370.863281,31.066406L370.863281,19.058594 339.960938,19.058594z M339.960938,31.0625" />
|
||||
<GeometryDrawing Brush="#FFFFB545"
|
||||
Geometry="F1 M512,512z M0,0z M280.492188,387.246094L266.777344,387.324219 266.5,387.324219C259.574219,387.113281 252.929688,385.929688 246.625,383.929688 226.558594,377.546875 210.324219,362.429688 201.273438,343.183594L185.820312,343.183594C173.917969,368.40625,148.800781,386.347656,119.8125,387.222656L105.839844,387.226562C86.4335939999999,408.445312,74.3007809999999,434.566406,70.6718749999999,462.992188L70.6718749999999,488.820312 315.640625,488.820312 315.640625,462.992188C312.015625,434.582031,299.890625,408.46875,280.492188,387.246094z M280.492188,387.246094" />
|
||||
<GeometryDrawing Brush="#FFFFB545"
|
||||
Geometry="F1 M512,512z M0,0z M185.820312,256L201.273438,256 201.273438,359.414062 185.820312,359.414062z M185.820312,256" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M280.492188,387.246094L266.777344,387.324219 266.5,387.324219C259.613281,387.117188,252.949219,385.929688,246.625,383.929688L263.121094,402.59375 263.382812,402.882812C263.675781,403.203125 263.96875,403.527344 264.261719,403.855469 264.324219,403.921875 264.382812,403.992188 264.445312,404.0625 272.253906,412.996094 265.660156,427.007812 253.792969,427.007812L80.3124999999999,427.007812C78.1992189999999,432.035156,76.4062499999999,437.195312,74.9023439999999,442.460938L74.8867189999999,442.460938C69.7773439999999,460.414062,70.6757809999999,465.738281,70.6757809999999,488.820312L315.644531,488.820312 315.644531,467.1875C315.644531,451.269531,307.132812,416.390625,280.492188,387.246094z M280.492188,387.246094" />
|
||||
<GeometryDrawing Brush="#FFFFB545"
|
||||
Geometry="F1 M512,512z M0,0z M193.15625,213.035156C191.320312,210.496094,189.269531,208.082031,187.011719,205.820312L125.007812,143.8125C120.140625,138.945312,123.585938,130.625,130.46875,130.625L255.84375,130.621094C262.730469,130.621094,266.175781,138.945312,261.308594,143.8125L199.28125,205.847656C197.03125,208.101562,194.988281,210.503906,193.15625,213.035156z M193.15625,213.035156" />
|
||||
<DrawingGroup Opacity="1">
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M255.84375,130.621094L230.792969,130.621094 171.304688,190.113281 185.820312,204.628906 185.820312,256 201.273438,256 201.273438,203.851562 261.308594,143.8125C266.175781,138.941406,262.726562,130.621094,255.84375,130.621094z M255.84375,130.621094" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M224.671875,400.226562C224.671875,404.492188 221.210938,407.953125 216.945312,407.953125 212.675781,407.953125 209.21875,404.492188 209.21875,400.226562 209.21875,395.957031 212.675781,392.5 216.945312,392.5 221.210938,392.5 224.671875,395.957031 224.671875,400.226562z M224.671875,400.226562" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M255.574219,427.011719C255.574219,431.277344 252.117188,434.738281 247.847656,434.738281 243.582031,434.738281 240.121094,431.277344 240.121094,427.011719 240.121094,422.742188 243.582031,419.285156 247.847656,419.285156 252.117188,419.285156 255.574219,422.742188 255.574219,427.011719z M255.574219,427.011719" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M183.460938,427.011719C183.460938,431.277344 180.003906,434.738281 175.738281,434.738281 171.46875,434.738281 168.011719,431.277344 168.011719,427.011719 168.011719,422.742188 171.46875,419.285156 175.738281,419.285156 180.003906,419.285156 183.460938,422.742188 183.460938,427.011719z M183.460938,427.011719" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M152.558594,410.527344C152.558594,414.792969 149.097656,418.253906 144.832031,418.253906 140.5625,418.253906 137.105469,414.792969 137.105469,410.527344 137.105469,406.261719 140.5625,402.800781 144.832031,402.800781 149.097656,402.800781 152.558594,406.261719 152.558594,410.527344z M152.558594,410.527344" />
|
||||
<GeometryDrawing Brush="#FFFF983B"
|
||||
Geometry="F1 M512,512z M0,0z M179.34375,154.011719C179.34375,158.277344 175.882812,161.738281 171.617188,161.738281 167.347656,161.738281 163.890625,158.277344 163.890625,154.011719 163.890625,149.746094 167.347656,146.285156 171.617188,146.285156 175.882812,146.285156 179.34375,149.746094 179.34375,154.011719z M179.34375,154.011719" />
|
||||
</DrawingGroup>
|
||||
<GeometryDrawing Brush="#FFA05A4B"
|
||||
Geometry="F1 M512,512z M0,0z M370.863281,0C365.785156,0 20.535156,0 15.453125,0 6.917969,0 0,6.917969 0,15.453125L0,38.632812C0,47.164062,6.917969,54.085938,15.453125,54.085938L370.863281,54.085938C379.398438,54.085938,386.316406,47.164062,386.316406,38.632812L386.316406,15.453125C386.316406,6.917969,379.398438,0,370.863281,0z M370.863281,0" />
|
||||
<GeometryDrawing Brush="#FF81493B"
|
||||
Geometry="F1 M512,512z M0,0z M370.863281,0L355.414062,0C355.414062,12.800781 345.035156,23.179688 332.234375,23.179688 323.21875,23.179688 3.53906199999994,23.179688 -5.6843418860808E-14,23.179688L-5.6843418860808E-14,38.632812C-5.6843418860808E-14,47.164062,6.91796899999994,54.085938,15.4531249999999,54.085938L370.863281,54.085938C379.398438,54.085938,386.316406,47.164062,386.316406,38.632812L386.316406,15.453125C386.316406,6.917969,379.398438,0,370.863281,0z M370.863281,0" />
|
||||
<GeometryDrawing Brush="#FFA05A4B"
|
||||
Geometry="F1 M512,512z M0,0z M370.863281,457.914062C365.785156,457.914062 20.535156,457.914062 15.453125,457.914062 6.917969,457.914062 0,464.835938 0,473.367188L0,496.546875C0,505.082031,6.917969,512,15.453125,512L370.863281,512C379.398438,512,386.316406,505.082031,386.316406,496.546875L386.316406,473.367188C386.316406,464.835938,379.398438,457.914062,370.863281,457.914062z M370.863281,457.914062" />
|
||||
<GeometryDrawing Brush="#FF81493B"
|
||||
Geometry="F1 M512,512z M0,0z M370.863281,457.914062L355.414062,457.914062C355.414062,470.714844 345.035156,481.09375 332.234375,481.09375 323.21875,481.09375 3.53906199999994,481.09375 -5.6843418860808E-14,481.09375L-5.6843418860808E-14,496.546875C-5.6843418860808E-14,505.082031,6.91796899999994,512,15.4531249999999,512L370.863281,512C379.398438,512,386.316406,505.082031,386.316406,496.546875L386.316406,473.367188C386.316406,464.835938,379.398438,457.914062,370.863281,457.914062z M370.863281,457.914062" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="PlayIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V512 H512 V0 H0 Z">
|
||||
<GeometryDrawing Brush="#FFDEECF1"
|
||||
Geometry="F1 M512,512z M0,0z M256,512C115.390625,512 0,396.609375 0,256 0,115.390625 115.390625,0 256,0 396.609375,0 512,115.390625 512,256 512,396.609375 396.609375,512 256,512z M256,512" />
|
||||
<GeometryDrawing Brush="#FFC6E2E7"
|
||||
Geometry="F1 M512,512z M0,0z M512,256C512,115.390625,396.609375,0,256,0L256,512C396.609375,512,512,396.609375,512,256z M512,256" />
|
||||
<GeometryDrawing Brush="#FF384949"
|
||||
Geometry="F1 M512,512z M0,0z M181,107.976562L181,404.023438 403.039062,256z M181,107.976562" />
|
||||
<GeometryDrawing Brush="#FF293939"
|
||||
Geometry="F1 M512,512z M0,0z M256,354.023438L403.039062,256 256,157.976562z M256,354.023438" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="StopIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V512 H512 V0 H0 Z">
|
||||
<GeometryDrawing Brush="#FFDEECF1"
|
||||
Geometry="F1 M512,512z M0,0z M256,512C115.390625,512 0,396.609375 0,256 0,115.390625 115.390625,0 256,0 396.609375,0 512,115.390625 512,256 512,396.609375 396.609375,512 256,512z M256,512" />
|
||||
<GeometryDrawing Brush="#FFC6E2E7"
|
||||
Geometry="F1 M512,512z M0,0z M512,256C512,115.390625,396.609375,0,256,0L256,512C396.609375,512,512,396.609375,512,256z M512,256" />
|
||||
<GeometryDrawing Brush="#FF384949"
|
||||
Geometry="F1 M512,512z M0,0z M151,361L361,361 361,151 151,151z M151,361" />
|
||||
<GeometryDrawing Brush="#FF293939"
|
||||
Geometry="F1 M512,512z M0,0z M256,151L361,151 361,361 256,361z M256,151" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="SaveIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V47 H47 V0 H0 Z">
|
||||
<GeometryDrawing Brush="#FF424A60"
|
||||
Geometry="F1 M47,47z M0,0z M46.5,8L46.5,8 46.5,47 0.5,47 0.5,0 38.5,0z" />
|
||||
<GeometryDrawing Brush="#FFE7ECED">
|
||||
<GeometryDrawing.Geometry>
|
||||
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="7.5,26,31,21" />
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
<GeometryDrawing Brush="#FFEBBA16">
|
||||
<GeometryDrawing.Geometry>
|
||||
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="7.5,26,31,12.037" />
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
<GeometryDrawing Brush="#FFC7CAC7">
|
||||
<GeometryDrawing.Geometry>
|
||||
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="9.5,0,26,16" />
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
<DrawingGroup Opacity="1">
|
||||
<GeometryDrawing Brush="#FFFFFFFF"
|
||||
Geometry="F1 M47,47z M0,0z M12.5,31L19.5,31C20.053,31 20.5,30.553 20.5,30 20.5,29.447 20.053,29 19.5,29L12.5,29C11.947,29 11.5,29.447 11.5,30 11.5,30.553 11.947,31 12.5,31z" />
|
||||
<GeometryDrawing Brush="#FFFFFFFF"
|
||||
Geometry="F1 M47,47z M0,0z M22.5,33L12.5,33C11.947,33 11.5,33.447 11.5,34 11.5,34.553 11.947,35 12.5,35L22.5,35C23.053,35 23.5,34.553 23.5,34 23.5,33.447 23.053,33 22.5,33z" />
|
||||
<GeometryDrawing Brush="#FFFFFFFF"
|
||||
Geometry="F1 M47,47z M0,0z M26.21,33.29C25.84,32.92 25.17,32.92 24.8,33.29 24.61,33.479 24.5,33.729 24.5,34 24.5,34.27 24.609,34.52 24.79,34.71 24.979,34.89 25.229,35 25.5,35 25.77,35 26.02,34.89 26.21,34.71 26.39,34.52 26.5,34.26 26.5,34 26.5,33.74 26.39,33.479 26.21,33.29z" />
|
||||
</DrawingGroup>
|
||||
<GeometryDrawing>
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="#FF424A60" Thickness="2" StartLineCap="Round" EndLineCap="Round"
|
||||
LineJoin="Miter" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Geometry>
|
||||
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="27.5,4,4,8" />
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
<GeometryDrawing Brush="#FFE7ECED"
|
||||
Geometry="F1 M47,47z M0,0z M24.5,16L24.5,16 9.5,16 9.5,0 16.5,0z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<misc:BindingProxy x:Key="Proxy" Data="{Binding}" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<controls:CustomWindowTitleControl DockPanel.Dock="Top">
|
||||
<controls:CustomWindowTitleControl.AdditionalContent>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Width="16" Background="Transparent" BorderThickness="0" Padding="0"
|
||||
Command="{Binding Data.RecordCommand, Source={StaticResource Proxy}}">
|
||||
<Image RenderTransformOrigin="0.5,0.5">
|
||||
<!--<Image.RenderTransform>
|
||||
<RotateTransform />
|
||||
</Image.RenderTransform>
|
||||
<Image.Triggers>
|
||||
<EventTrigger RoutedEvent="UserControl.Loaded">
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetProperty="(Image.RenderTransform).(RotateTransform.Angle)"
|
||||
To="-360" Duration="0:0:1" RepeatBehavior="Forever" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
</Image.Triggers>-->
|
||||
<Image.Style>
|
||||
<Style TargetType="{x:Type Image}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger
|
||||
Binding="{Binding Data.IsRecording, Source={StaticResource Proxy}}"
|
||||
Value="false">
|
||||
<Setter Property="Source" Value="{StaticResource PlayIcon}" />
|
||||
</DataTrigger>
|
||||
<DataTrigger
|
||||
Binding="{Binding Data.IsRecording, Source={StaticResource Proxy}}"
|
||||
Value="true">
|
||||
<Setter Property="Source" Value="{StaticResource StopIcon}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Image.Style>
|
||||
</Image>
|
||||
</Button>
|
||||
<Button Width="16" Background="Transparent" BorderThickness="0" Padding="0" Margin="10,0,0,0"
|
||||
Command="{Binding Data.SaveCommand, Source={StaticResource Proxy}}">
|
||||
<Image Source="{StaticResource SaveIcon}" />
|
||||
</Button>
|
||||
<Image Margin="10,0,0,0" Height="16" Source="{StaticResource WaitIcon}"
|
||||
Visibility="{Binding Data.IsRecording, Source={StaticResource Proxy}, Converter={StaticResource BooleanToVisibilityConverter}}" />
|
||||
</StackPanel>
|
||||
</controls:CustomWindowTitleControl.AdditionalContent>
|
||||
</controls:CustomWindowTitleControl>
|
||||
<Border Grid.Row="1" BorderThickness="4" BorderBrush="Black" />
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user