-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
110 lines (98 loc) · 4.9 KB
/
MainWindow.xaml
File metadata and controls
110 lines (98 loc) · 4.9 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<Window x:Class="RedLight.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Red Light"
Height="360" Width="380"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ResizeMode="NoResize"
ShowInTaskbar="False"
Topmost="True">
<Border CornerRadius="8"
Background="{DynamicResource WindowBackgroundBrush}"
BorderBrush="{DynamicResource WindowBorderBrush}"
BorderThickness="1">
<Border.Effect>
<DropShadowEffect BlurRadius="16" Opacity="0.4" ShadowDepth="2" Color="#000000"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Title Bar (draggable) -->
<Grid Grid.Row="0" MouseLeftButtonDown="TitleBar_MouseLeftButtonDown">
<TextBlock Text="Red Light"
Foreground="{DynamicResource PrimaryTextBrush}"
FontFamily="Segoe UI"
FontSize="14"
FontWeight="SemiBold"
Margin="16,14,16,10"/>
</Grid>
<!-- Top Separator -->
<Border Grid.Row="1" Height="1" Background="{DynamicResource SeparatorBrush}" Margin="0,0,0,4"/>
<!-- Controls -->
<StackPanel Grid.Row="2" Margin="16,12,16,12">
<!-- Enable Filter -->
<CheckBox x:Name="EnableFilterCheckBox"
Content="Enable Fullscreen Filter"
Style="{DynamicResource ThemedCheckBox}"
Checked="ApplyFilter"
Unchecked="ApplyFilter"/>
<!-- Filter Type -->
<TextBlock Text="Filter Type"
Foreground="{DynamicResource SecondaryTextBrush}"
FontFamily="Segoe UI"
FontSize="11"
FontWeight="SemiBold"
Margin="0,18,0,6"/>
<ComboBox x:Name="FilterTypeComboBox"
Style="{DynamicResource ThemedComboBox}"
SelectionChanged="ApplyFilter">
<ComboBoxItem Content="Red" IsSelected="True" Style="{DynamicResource ThemedComboBoxItem}"/>
<ComboBoxItem Content="Grayscale" Style="{DynamicResource ThemedComboBoxItem}"/>
<ComboBoxItem Content="Red/Green (Protanopia)" Style="{DynamicResource ThemedComboBoxItem}"/>
<ComboBoxItem Content="Green/Red (Deuteranopia)" Style="{DynamicResource ThemedComboBoxItem}"/>
<ComboBoxItem Content="Blue/Yellow (Tritanopia)" Style="{DynamicResource ThemedComboBoxItem}"/>
</ComboBox>
<!-- Intensity -->
<Grid Margin="0,18,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Intensity"
Foreground="{DynamicResource SecondaryTextBrush}"
FontFamily="Segoe UI"
FontSize="11"
FontWeight="SemiBold"
VerticalAlignment="Center"/>
<TextBlock x:Name="IntensityValueText"
Grid.Column="1"
Text="100%"
Foreground="{DynamicResource SecondaryTextBrush}"
FontFamily="Segoe UI"
FontSize="11"
VerticalAlignment="Center"/>
</Grid>
<Slider x:Name="IntensitySlider"
Minimum="0" Maximum="1" Value="1"
Style="{DynamicResource ThemedSlider}"
Margin="0,8,0,0"
ValueChanged="IntensitySlider_ValueChanged"/>
</StackPanel>
<!-- Bottom Separator -->
<Border Grid.Row="3" Height="1" Background="{DynamicResource SeparatorBrush}" Margin="0,4,0,4"/>
<!-- Footer -->
<StackPanel Grid.Row="4" Margin="0,0,0,6">
<Button Click="QuitButton_Click" Style="{DynamicResource MenuButtonStyle}">
<TextBlock Text="Quit" Foreground="#FFE74856"/>
</Button>
</StackPanel>
</Grid>
</Border>
</Window>