-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
85 lines (85 loc) · 5.58 KB
/
Copy pathMainWindow.xaml
File metadata and controls
85 lines (85 loc) · 5.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<Window x:Class="RegionToShare.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:styles="urn:TomsToolbox.Wpf.Styles"
xmlns:properties="clr-namespace:RegionToShare.Properties"
Title="Region to Share"
Height="782" Width="1024"
MinHeight="200" MinWidth="300"
Background="Black" Foreground="White">
<Window.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlLightLightBrushKey}" Color="#333337" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlLightBrushKey}" Color="#464646" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#252526" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlDarkBrushKey}" Color="#686868" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlDarkDarkBrushKey}" Color="#9E9E9E" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="#F1F1F1" />
<SolidColorBrush x:Key="{x:Static SystemColors.GrayTextBrushKey}" Color="#999999" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="{DynamicResource ThemeColor}" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#FFFFFF" />
<SolidColorBrush x:Key="{x:Static SystemColors.HotTrackBrushKey}" Color="{DynamicResource ThemeColor}" />
<SolidColorBrush x:Key="{x:Static SystemColors.InfoTextBrushKey}" Color="#F1F1F1" />
<SolidColorBrush x:Key="{x:Static SystemColors.InfoBrushKey}" Color="#252526" />
<SolidColorBrush x:Key="{x:Static SystemColors.MenuBrushKey}" Color="#1B1B1C" />
<SolidColorBrush x:Key="{x:Static SystemColors.MenuBarBrushKey}" Color="#1B1B1C" />
<SolidColorBrush x:Key="{x:Static SystemColors.MenuTextBrushKey}" Color="#F1F1F1" />
<SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="#333337" />
<SolidColorBrush x:Key="{x:Static SystemColors.WindowTextBrushKey}" Color="#F1F1F1" />
<SolidColorBrush x:Key="{x:Static SystemColors.ActiveCaptionBrushKey}" Color="#2D2D30" />
<SolidColorBrush x:Key="{x:Static SystemColors.ActiveBorderBrushKey}" Color="{DynamicResource ThemeColor}" />
<SolidColorBrush x:Key="{x:Static SystemColors.ActiveCaptionTextBrushKey}" Color="#F1F1F1" />
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveCaptionBrushKey}" Color="#2D2D30" />
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveBorderBrushKey}" Color="#434346" />
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveCaptionTextBrushKey}" Color="#808080" />
<SolidColorBrush x:Key="{x:Static styles:ResourceKeys.BorderBrush}" Color="#3F3F46" />
<SolidColorBrush x:Key="{x:Static styles:ResourceKeys.AccentDarkBrush}" Color="{DynamicResource ThemeColor}" />
<SolidColorBrush x:Key="{x:Static styles:ResourceKeys.DisabledBrush}" Color="#2D2D30" />
</Window.Resources>
<Grid DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">
<Grid x:Name="InfoArea" Background="{Binding BackgroundPattern}">
<StackPanel VerticalAlignment="Top" HorizontalAlignment="Left" Orientation="Horizontal">
<StackPanel.Resources>
<Style TargetType="Decorator" x:Key="Padding">
<Setter Property="Width" Value="10" />
</Style>
</StackPanel.Resources>
<ComboBox Text="{Binding Extend}"
ItemsSource="{Binding Resolutions}"
Width="90" IsEditable="True" />
<Decorator Style="{StaticResource Padding}"/>
<TextBox Text="{Binding ThemeColor, Source={x:Static properties:Settings.Default}, UpdateSourceTrigger=PropertyChanged}"
Width="90" />
<Decorator Style="{StaticResource Padding}"/>
<ComboBox SelectedItem="{Binding FramesPerSecond, Source={x:Static properties:Settings.Default}}"
ItemStringFormat="{}{0} FPS"
ItemsSource="{Binding SupportedFramesPerSecond}"
Width="65" />
<Decorator Style="{StaticResource Padding}"/>
<CheckBox Content="Draw shadow cursor"
VerticalAlignment="Center"
IsChecked="{Binding DrawShadowCursor, Source={x:Static properties:Settings.Default}}" />
<Decorator Style="{StaticResource Padding}"/>
<CheckBox Content="Start activated"
VerticalAlignment="Center"
IsChecked="{Binding StartActivated, Source={x:Static properties:Settings.Default}}" />
<Decorator Style="{StaticResource Padding}"/>
<CheckBox Content="Show close button"
VerticalAlignment="Center"
IsChecked="{Binding ShowCloseButton, Source={x:Static properties:Settings.Default}}" />
</StackPanel>
<TextBlock Text="{Binding Version}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Padding="5,2" />
<Grid VerticalAlignment="Center" HorizontalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="1*" />
<RowDefinition Height="2*" />
</Grid.RowDefinitions>
<Ellipse Grid.Row="1" Width="128" Height="128"
Fill="{Binding Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
<Path Grid.Row="1" Width="80" Height="80"
Fill="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
Data="M 20,0 L80,40 L20,80 Z" />
</Grid>
</Grid>
<Image x:Name="RenderTarget" Visibility="Hidden" MouseDown="SubLayer_MouseDown" />
</Grid>
</Window>